IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 13, 2009, 4:36:10 PM (17 years ago)
Author:
bills
Message:

minor mods to the rc tables

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dbconfig/changes.txt

    r23776 r23843  
    998998ALTER TABLE rcInterest DROP COLUMN prod_id;
    999999
    1000 
     1000ALTER TABLE rcDSProduct DROP column prod_root;
     1001
     1002-- just re-create these two tables
     1003DROP TABLE rcRun;
     1004DROP TABLE rcDSFileset;
     1005
     1006CREATE TABLE rcDSFileset (
     1007    fs_id       BIGINT AUTO_INCREMENT,
     1008    dist_id     BIGINT,
     1009    prod_id     BIGINT,
     1010    name        VARCHAR(255),
     1011    state       VARCHAR(64),
     1012    registered  TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
     1013    fault       SMALLINT DEFAULT 0,
     1014    PRIMARY KEY(dist_id, prod_id),
     1015    KEY(fs_id),
     1016    FOREIGN KEY(dist_id) REFERENCES distRun(dist_id),
     1017    FOREIGN KEY(prod_id) REFERENCES rcDSProduct(prod_id)
     1018)  ENGINE=innodb DEFAULT CHARSET=latin1;
     1019
     1020CREATE TABLE rcRun (
     1021    rc_id       BIGINT AUTO_INCREMENT,
     1022    fs_id       BIGINT,
     1023    dest_id     BIGINT,
     1024    state       VARCHAR(64),
     1025    registered  TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
     1026    PRIMARY KEY(rc_id),
     1027    FOREIGN KEY(fs_id) REFERENCES rcDSFileset(fs_id),
     1028    FOREIGN KEY(dest_id) REFERENCES rcDestination(dest_id)
     1029)  ENGINE=innodb DEFAULT CHARSET=latin1;
     1030
Note: See TracChangeset for help on using the changeset viewer.