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/stacktool.c

    r25840 r25851  
    12971297  }
    12981298
     1299  if (!pxExportVersion(config, f)) {
     1300    psError(PS_ERR_UNKNOWN, false, "failed to write dbversion output file");
     1301    return false;
     1302  }
    12991303  psMetadata *where = psMetadataAlloc();
    13001304  PXOPT_COPY_S64(config->args, where, "-stack_id", "stack_id", "==");
     
    13831387  psMetadata *input = psMetadataConfigRead (NULL, &nFail, infile, false);
    13841388
    1385   fprintf (stdout, "---- input ----\n");
     1389#ifdef notdef
     1390  fprintf (stderr, "---- input ----\n");
    13861391  psMetadataPrint (stderr, input, 1);
    1387 
     1392#endif
     1393
     1394  if (!pxCheckImportVersion(config, input)) {
     1395      psError(PS_ERR_UNKNOWN, false, "pxCheckImportVersion failed");
     1396      return false;
     1397  }
    13881398  psMetadataItem *item = psMetadataLookup (input, "stackRun");
    13891399  psAssert (item, "entry not in input?");
Note: See TracChangeset for help on using the changeset viewer.