IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 15, 2009, 11:37:32 AM (17 years ago)
Author:
bills
Message:

Add a new table to the database dbversion where we will store the
schema version number. In -exportrun save the version in the output files.
Then in -importrun insure that the input file version matches the schema.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/src/faketool.c

    r25840 r25851  
    12701270    return false;
    12711271  }
    1272 
     1272  if (!pxExportVersion(config, f)) {
     1273    psError(PS_ERR_UNKNOWN, false, "failed to write dbversion output file");
     1274    return false;
     1275  }
    12731276  psMetadata *where = psMetadataAlloc();
    12741277  PXOPT_COPY_S64(config->args, where, "-fake_id", "fake_id", "==");
     
    13511354  psMetadata *input = psMetadataConfigRead (NULL, &nFail, infile, false);
    13521355
    1353   fprintf (stdout, "---- input ----\n");
     1356#ifdef notdef
     1357  fprintf (stderr, "---- input ----\n");
    13541358  psMetadataPrint (stderr, input, 1);
    1355 
     1359#endif
     1360
     1361  if (!pxCheckImportVersion(config, input)) {
     1362      psError(PS_ERR_UNKNOWN, false, "pxCheckImportVersion failed");
     1363      return false;
     1364  }
    13561365  psMetadataItem *item = psMetadataLookup (input, "fakeRun");
    13571366  psAssert (item, "entry not in input?");
Note: See TracChangeset for help on using the changeset viewer.