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

    r25840 r25851  
    20992099  }
    21002100
     2101  if (!pxExportVersion(config, f)) {
     2102    psError(PS_ERR_UNKNOWN, false, "failed to write dbversion output file");
     2103    return false;
     2104  }
    21012105  psMetadata *where = psMetadataAlloc();
    21022106  PXOPT_COPY_S64(config->args, where, "-diff_id", "diff_id", "==");
     
    21902194  psMetadata *input = psMetadataConfigRead (NULL, &nFail, infile, false);
    21912195
    2192   fprintf (stdout, "---- input ----\n");
     2196#ifdef notdef
     2197  fprintf (stderr, "---- input ----\n");
    21932198  psMetadataPrint (stderr, input, 1);
    2194 
     2199#endif
     2200
     2201  if (!pxCheckImportVersion(config, input)) {
     2202      psError(PS_ERR_UNKNOWN, false, "pxCheckImportVersion failed");
     2203      return false;
     2204  }
    21952205  psMetadataItem *item = psMetadataLookup (input, "diffRun");
    21962206  psAssert (item, "entry not in input?");
Note: See TracChangeset for help on using the changeset viewer.