IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 38157 for trunk/ippTools/share


Ignore:
Timestamp:
Apr 20, 2015, 12:32:54 PM (11 years ago)
Author:
bills
Message:

Add 3 new postage stamp tables to the IPP database config.
Note that we don't keep the postage stamp tables in the gpc1 database
so there are no changes listed in dbconfig/changes.txt to update them.
We do that to avoid mistakenly using pstamptool without setting the dbserver to
the system that actually hosts the ippRequestServer database (currently ippc17).

Location:
trunk/ippTools/share
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippTools/share/Makefile.am

    r38134 r38157  
    359359        pstamptool_stopdependentjob.sql \
    360360        pstamptool_updatejob.sql \
     361        pstamptool_addaccesslevel.sql \
    361362        pxadmin_create_tables.sql \
    362363        pxadmin_create_mirror_tables.sql \
  • trunk/ippTools/share/pxadmin_create_tables.sql

    r37885 r38157  
    15111511) ENGINE=innodb DEFAULT CHARSET=latin1;
    15121512
     1513CREATE TABLE pstampUserDomain (
     1514    domainName      VARCHAR(64),
     1515    accessLevel     INT,
     1516    defaultProduct  VARCHAR(255),
     1517    defaultLabel    VARCHAR(64),
     1518    PRIMARY KEY(domainName)
     1519) ENGINE=innodb DEFAULT CHARSET=latin1;
     1520
     1521CREATE TABLE pstampUser (
     1522    userName        VARCHAR(64),
     1523    domainName      VARCHAR(64),
     1524    accessLevel     INT,
     1525    defaultProduct  VARCHAR(255),
     1526    defaultLabel    VARCHAR(64),
     1527    PRIMARY KEY (userName, domainName)
     1528) ENGINE=innodb DEFAULT CHARSET=latin1;
     1529
     1530CREATE TABLE pstampAccessLevel (
     1531    proj_id         BIGINT,
     1532    accessLevel     INT,
     1533    mjd_min         FLOAT DEFAULT 0,
     1534    mjd_max         FLOAT DEFAULT 0,
     1535    PRIMARY KEY (proj_id, accessLevel),
     1536    UNIQUE KEY (proj_id, accessLevel),
     1537    FOREIGN KEY(proj_id) REFERENCES pstampProject(proj_id)
     1538) ENGINE=innodb DEFAULT CHARSET=latin1;
     1539
    15131540CREATE TABLE pstampWebRequest (
    15141541        num BIGINT AUTO_INCREMENT,
  • trunk/ippTools/share/pxadmin_drop_tables.sql

    r37885 r38157  
    6969DROP TABLE IF EXISTS pstampProject;
    7070DROP TABLE IF EXISTS pstampRequest;
     71DROP TABLE IF EXISTS pstampDependent;
     72DROP TABLE IF EXISTS pstampWebRequest;
     73DROP TABLE IF EXISTS pstampFile;
    7174DROP TABLE IF EXISTS pstampJob;
     75DROP TABLE IF EXISTS pstampUserDomain;
     76DROP TABLE IF EXISTS pstampUser;
     77DROP TABLE IF EXISTS pstampAccessLevel;
    7278DROP TABLE IF EXISTS distRun;
    7379DROP TABLE IF EXISTS distTarget;
     
    8591DROP TABLE IF EXISTS publishRun;
    8692DROP TABLE IF EXISTS publishDone;
    87 DROP TABLE IF EXISTS pstampDependent;
    88 DROP TABLE IF EXISTS pstampFile;
    8993DROP TABLE IF EXISTS staticskyInput;
    9094DROP TABLE IF EXISTS staticskyResult;
    9195DROP TABLE IF EXISTS staticskyRun;
    9296DROP TABLE IF EXISTS Label;
    93 DROP TABLE IF EXISTS pstampWebRequest;
    9497DROP TABLE IF EXISTS chipBackgroundRun;
    9598DROP TABLE IF EXISTS chipBackgroundImfile;
Note: See TracChangeset for help on using the changeset viewer.