IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 24512 for trunk/dbconfig


Ignore:
Timestamp:
Jun 19, 2009, 12:38:16 PM (17 years ago)
Author:
Paul Price
Message:

Done with development of mechanism to automatically publish detections: merging branches/pap_mops (r24510) into trunk

Location:
trunk
Files:
3 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/dbconfig/changes.txt

    r24487 r24512  
    11281128
    11291129ALTER TABLE warpRun ADD COLUMN reduction VARCHAR(64) AFTER tess_id;
     1130
     1131-- Tables to support publishing of detections to a Science Client
     1132-- Clients to which we send stuff
     1133CREATE TABLE publishClient (
     1134    client_id BIGINT AUTO_INCREMENT, -- unique identifier
     1135    product VARCHAR(64),             -- product name
     1136    stage VARCHAR(64) NOT NULL, -- stage of interest (chip, camera, diff, etc.)
     1137    workdir VARCHAR(255) NOT NULL, -- working directory
     1138    comment VARCHAR(255),            -- for human memory
     1139    PRIMARY KEY(client_id)
     1140) ENGINE=innodb DEFAULT CHARSET=latin1;
     1141-- Publishing a set of data (e.g., a specific diffRun)
     1142CREATE TABLE publishRun (
     1143    pub_id BIGINT AUTO_INCREMENT, -- unique identifier
     1144    client_id BIGINT NOT NULL,  -- link to publishClient
     1145    stage_id BIGINT NOT NULL,   -- link to various stage tables
     1146    label VARCHAR(64),          -- label for run
     1147    state VARCHAR(64),          -- state of run (new, full, etc.)
     1148    PRIMARY KEY(pub_id),
     1149    KEY(client_id),
     1150    KEY(stage_id),
     1151    KEY(label),
     1152    KEY(state),
     1153    FOREIGN KEY(client_id) REFERENCES publishClient(client_id)
     1154) ENGINE=innodb DEFAULT CHARSET=latin1;
     1155-- Publishing a file within a set
     1156CREATE TABLE publishDone (
     1157    pub_id BIGINT AUTO_INCREMENT, -- link to publishRun
     1158    path_base VARCHAR(255),     -- base path of output
     1159    fault SMALLINT NOT NULL DEFAULT 0, -- Fault code
     1160    PRIMARY KEY(pub_id),
     1161    KEY(fault),
     1162    FOREIGN KEY(pub_id) REFERENCES publishRun(pub_id)
     1163) ENGINE=innodb DEFAULT CHARSET=latin1;
  • trunk/dbconfig/ipp.m4

    r23880 r24512  
    2626include(rc.md)
    2727include(receive.md)
     28include(publish.md)
Note: See TracChangeset for help on using the changeset viewer.