IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 23, 2009, 10:22:33 AM (17 years ago)
Author:
bills
Message:

In distribution server merge rcDSProduct into rcDestination. It was illogical for
a product to be shared by multiple destinations.
In defineinterest define by query to allow destination names and target parameters
to be used. Much more administrator friendly.
Add a label to pstampRequest. Not used yet.
Split reverting of faults in distRuns from faults building components.

File:
1 edited

Legend:

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

    r25479 r25493  
    12321232        name VARCHAR(64) UNIQUE,
    12331233        reqType VARCHAR(16),
     1234        label VARCHAR(64),
    12341235        outProduct VARCHAR(64),
    12351236        uri VARCHAR(255),
     
    12971298
    12981299
    1299 CREATE TABLE rcDSProduct (
    1300     prod_id     BIGINT AUTO_INCREMENT,
    1301     name        VARCHAR(64),
    1302     dbname      VARCHAR(64),
    1303     dbhost      VARCHAR(64),
    1304     PRIMARY KEY(prod_id)
    1305 )  ENGINE=innodb DEFAULT CHARSET=latin1;
    1306 
    13071300CREATE TABLE rcDestination (
    13081301    dest_id     BIGINT AUTO_INCREMENT,
    1309     prod_id     BIGINT,
    13101302    name        VARCHAR(64),
    13111303    status_uri  VARCHAR(255),
    13121304    comment     VARCHAR(255),
    13131305    last_fileset VARCHAR(255),
     1306    dbname      VARCHAR(64),
     1307    dbhost      VARCHAR(64),
    13141308    state       VARCHAR(64),
    1315     PRIMARY KEY(dest_id),
    1316     FOREIGN KEY(prod_id) REFERENCES rcDSProduct(prod_id)
     1309    PRIMARY KEY(dest_id)
    13171310)  ENGINE=innodb DEFAULT CHARSET=latin1;
    1318 
    13191311
    13201312CREATE TABLE rcInterest (
     
    13321324    fs_id       BIGINT AUTO_INCREMENT,
    13331325    dist_id     BIGINT,
    1334     prod_id     BIGINT,
     1326    dest_id     BIGINT,
    13351327    name        VARCHAR(255),
    13361328    state       VARCHAR(64),
    13371329    registered  TIMESTAMP DEFAULT CURRENT_TIMESTAMP,
    13381330    fault       SMALLINT DEFAULT 0,
    1339     PRIMARY KEY(dist_id, prod_id),
     1331    PRIMARY KEY(dist_id, dest_id),
    13401332    KEY(fs_id),
    13411333    FOREIGN KEY(dist_id) REFERENCES distRun(dist_id),
    1342     FOREIGN KEY(prod_id) REFERENCES rcDSProduct(prod_id)
    1343 --    KEY(dist_id, prod_id)
     1334    FOREIGN KEY(dest_id) REFERENCES rcDestination(dest_id)
    13441335)  ENGINE=innodb DEFAULT CHARSET=latin1;
    13451336
Note: See TracChangeset for help on using the changeset viewer.