IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/ippTools/share/pxadmin_create_tables.sql

    r24487 r24512  
    13691369
    13701370
     1371
     1372-- Tables to support publishing of detections to a Science Client
     1373
     1374-- Clients to which we send stuff
     1375CREATE TABLE publishClient (
     1376    client_id BIGINT AUTO_INCREMENT, -- unique identifier
     1377    product VARCHAR(64),             -- product name
     1378    stage VARCHAR(64) NOT NULL, -- stage of interest (chip, camera, diff, etc.)
     1379    workdir VARCHAR(255) NOT NULL, -- working directory
     1380    comment VARCHAR(255),            -- for human memory
     1381    PRIMARY KEY(client_id)
     1382) ENGINE=innodb DEFAULT CHARSET=latin1;
     1383
     1384-- Publishing a set of data (e.g., a specific diffRun)
     1385CREATE TABLE publishRun (
     1386    pub_id BIGINT AUTO_INCREMENT, -- unique identifier
     1387    client_id BIGINT NOT NULL,  -- link to publishClient
     1388    stage_id BIGINT NOT NULL,   -- link to various stage tables
     1389    label VARCHAR(64),          -- label for run
     1390    state VARCHAR(64),          -- state of run (new, full, etc.)
     1391    PRIMARY KEY(pub_id),
     1392    KEY(client_id),
     1393    KEY(stage_id),
     1394    KEY(label),
     1395    KEY(state),
     1396    FOREIGN KEY(client_id) REFERENCES publishClient(client_id)
     1397) ENGINE=innodb DEFAULT CHARSET=latin1;
     1398
     1399-- Publishing a file within a set
     1400CREATE TABLE publishDone (
     1401    pub_id BIGINT AUTO_INCREMENT, -- link to publishRun
     1402    path_base VARCHAR(255),     -- base path of output
     1403    fault SMALLINT NOT NULL DEFAULT 0, -- Fault code
     1404    PRIMARY KEY(pub_id),
     1405    KEY(fault),
     1406    FOREIGN KEY(pub_id) REFERENCES publishRun(pub_id)
     1407) ENGINE=innodb DEFAULT CHARSET=latin1;
     1408
     1409
    13711410-- This comment line is here to avoid empty query error.
    13721411-- Another way to avoid that problem is to omit the semicolon above but I think that is untidy.
Note: See TracChangeset for help on using the changeset viewer.