IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 15, 2009, 5:42:05 PM (17 years ago)
Author:
Paul Price
Message:

Adding receivetool, for the other end of the distribution.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/share/pxadmin_create_tables.sql

    r23877 r23880  
    13031303)  ENGINE=innodb DEFAULT CHARSET=latin1;
    13041304
     1305-- Sources from which to receive files
     1306CREATE TABLE receiveSource (
     1307    source_id BIGINT AUTO_INCREMENT, -- unique identifier
     1308    source VARCHAR(128) NOT NULL, -- source URI
     1309    product VARCHAR(64) NOT NULL, -- product of interest
     1310    workdir VARCHAR(255),       -- where to extract (optional)
     1311    comment VARCHAR(255),       -- for human memory
     1312    fileset_last VARCHAR(128),  -- last fileset seen
     1313    PRIMARY KEY(source_id),
     1314    KEY(source),
     1315    KEY(product),
     1316    KEY(comment)
     1317) ENGINE=innodb DEFAULT CHARSET=latin1;
     1318
     1319-- Run for receiving files
     1320CREATE TABLE receiveRun (
     1321    receive_id BIGINT AUTO_INCREMENT, -- unique identifier
     1322    source_id BIGINT NOT NULL,  -- link to receiveSource
     1323    fileset VARCHAR(128) NOT NULL, -- fileset to receive
     1324    PRIMARY KEY(receive_id),
     1325    KEY(source_id),
     1326    FOREIGN KEY(source_id) REFERENCES receiveSource(source_id)
     1327) ENGINE=innodb DEFAULT CHARSET=latin1;
     1328
     1329-- Result of receiving files
     1330CREATE TABLE receiveResult (
     1331    receive_id BIGINT AUTO_INCREMENT, -- unique identifier, link to receiveRun
     1332    dtime_copy FLOAT,           -- Time to copy
     1333    dtime_extract FLOAT,        -- Time to extract
     1334    fault SMALLINT NOT NULL DEFAULT 0, -- Fault code
     1335    PRIMARY KEY(receive_id),
     1336    KEY(fault),
     1337    FOREIGN KEY(receive_id) REFERENCES receiveRun(receive_id)
     1338) ENGINE=innodb DEFAULT CHARSET=latin1;
    13051339
    13061340
Note: See TracChangeset for help on using the changeset viewer.