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

    r25840 r25851  
    17531753    }
    17541754
     1755    if (!pxExportVersion(config, f)) {
     1756        psError(PS_ERR_UNKNOWN, false, "failed to write dbversion output file");
     1757        return false;
     1758    }
    17551759    psMetadata *where = psMetadataAlloc();
    17561760    PXOPT_COPY_S64(config->args, where, "-warp_id", "warp_id", "==");
     
    18451849  psMetadata *input = psMetadataConfigRead (NULL, &nFail, infile, false);
    18461850
    1847   fprintf (stdout, "---- input ----\n");
     1851#ifdef notdef
     1852  fprintf (stderr, "---- input ----\n");
    18481853  psMetadataPrint (stderr, input, 1);
     1854#endif
     1855
     1856  if (!pxCheckImportVersion(config, input)) {
     1857      psError(PS_ERR_UNKNOWN, false, "pxCheckImportVersion failed");
     1858      return false;
     1859  }
    18491860
    18501861  psMetadataItem *item = psMetadataLookup (input, "warpRun");
Note: See TracChangeset for help on using the changeset viewer.