IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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

Fixing up publish tables.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/pap_mops/ippTools/share/pxadmin_create_tables.sql

    r24373 r24375  
    13811381) ENGINE=innodb DEFAULT CHARSET=latin1;
    13821382
    1383 -- Publishing a set
     1383-- Publishing a set of data (e.g., a specific diffRun)
    13841384CREATE TABLE publishRun (
    13851385    pub_id BIGINT AUTO_INCREMENT, -- unique identifier
     
    13921392) ENGINE=innodb DEFAULT CHARSET=latin1;
    13931393
     1394-- Publishing a file within a set
    13941395CREATE TABLE publishFile (
    13951396    pub_id BIGINT AUTO_INCREMENT, -- link to publishRun
    1396     component VARCHAR(64),        --
    1397 
    1398 
    1399 
    1400 publishClient   METADATA
    1401     client_id   S64         0       # Primary Key AUTO_INCREMENT
    1402     comment     STR         255
    1403     stage       STR         64
    1404     format      STR         64
    1405     destination STR         255
    1406 END
    1407 
    1408 publishRun      METADATA
    1409     pub_id      S64         0       # Primary Key AUTO_INCREMENT
    1410     client_id   S64         0
    1411     stage_id    S64         0
    1412     state       STR         64
    1413 END
    1414 
    1415 publishFile     METADATA
    1416     pub_id      S64         0       # Primary Key
    1417     component   STR         64      # Primary Key
    1418     fault       S16         0
    1419 END
    1420 
    1421 
     1397    component VARCHAR(64),        -- analagous to class_id or skycell_id
     1398    fault SMALLINT NOT NULL DEFAULT 0, -- Fault code
     1399    PRIMARY KEY(pub_id, component),
     1400    KEY(component),
     1401    KEY(fault),
     1402    FOREIGN KEY(pub_id) REFERENCES publishRun(pub_id)
     1403) ENGINE=innodb DEFAULT CHARSET=latin1;
    14221404
    14231405
Note: See TracChangeset for help on using the changeset viewer.