IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 24376


Ignore:
Timestamp:
Jun 10, 2009, 4:54:52 PM (17 years ago)
Author:
Paul Price
Message:

Adding new tables.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pap_mops/dbconfig/changes.txt

    r24174 r24376  
    11261126
    11271127-- Version 1.1.53
     1128
     1129-- Tables to support publishing of detections to a Science Client
     1130-- Clients to which we send stuff
     1131CREATE TABLE publishClient (
     1132    client_id BIGINT AUTO_INCREMENT, -- unique identifier
     1133    comment VARCHAR(255),            -- for human memory
     1134    stage VARCHAR(64),               -- stage of interest (chip, camera, diff, etc.)
     1135    format VARCHAR(64),              -- format of data
     1136    destination VARCHAR(255),        -- where to send data
     1137    PRIMARY KEY(client_id)
     1138) ENGINE=innodb DEFAULT CHARSET=latin1;
     1139-- Publishing a set of data (e.g., a specific diffRun)
     1140CREATE TABLE publishRun (
     1141    pub_id BIGINT AUTO_INCREMENT, -- unique identifier
     1142    client_id BIGINT,             -- link to publishClient
     1143    stage_id BIGINT,              -- link to various stage tables
     1144    PRIMARY KEY(pub_id),
     1145    KEY(client_id),
     1146    KEY(stage_id),
     1147    FOREIGN KEY(client_id) REFERENCES publishClient(client_id)
     1148) ENGINE=innodb DEFAULT CHARSET=latin1;
     1149-- Publishing a file within a set
     1150CREATE TABLE publishFile (
     1151    pub_id BIGINT AUTO_INCREMENT, -- link to publishRun
     1152    component VARCHAR(64),        -- analagous to class_id or skycell_id
     1153    fault SMALLINT NOT NULL DEFAULT 0, -- Fault code
     1154    PRIMARY KEY(pub_id, component),
     1155    KEY(component),
     1156    KEY(fault),
     1157    FOREIGN KEY(pub_id) REFERENCES publishRun(pub_id)
     1158) ENGINE=innodb DEFAULT CHARSET=latin1;
Note: See TracChangeset for help on using the changeset viewer.