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/dbconfig/changes.txt

    r25848 r25851  
    14101410
    14111411ALTER TABLE rcDestination ADD CONSTRAINT UNIQUE(name);
     1412
     1413CREATE TABLE dbversion (
     1414    schema_version VARCHAR(64),
     1415    updated TIMESTAMP DEFAULT CURRENT_TIMESTAMP
     1416) ENGINE=innodb DEFAULT CHARSET=latin1;
     1417
     1418INSERT INTO dbversion VALUES('1.1.56', CURRENT_TIMESTAMP);
     1419
     1420
    14121421-- Vesion 1.1.57
     1422
     1423-- add changes for 1.1.57 here. Then uncomment the following before commiting
     1424
     1425-- UPDATE dbversion set schema_version = '1.1.57',  updated= CURRENT_TIMESTAMP();
Note: See TracChangeset for help on using the changeset viewer.