IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 29, 2013, 2:11:53 PM (13 years ago)
Author:
bills
Message:

Add key to relStack UNIQUE KEY (rel_id, tess_id, skycell_id, filter, stack_type, mjd_obs)
to insure that we only have 1 stack for each skycell per stack type per mjd_obs. Note that
only nightly stacks have relStack.mjd_obs != 0 deep and reference stacks have it set to zero

File:
1 edited

Legend:

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

    r35418 r35453  
    1 CREATE TABLE dbversion (
     1eREATE TABLE dbversion (
    22    schema_version VARCHAR(64),
    33    updated TIMESTAMP DEFAULT CURRENT_TIMESTAMP
     
    22042204) ENGINE=innodb DEFAULT CHARSET=latin1;
    22052205
    2206 CREATE TABLE relStack (
     2206CREATE TABLE relStackTest (
    22072207    relstack_id BIGINT AUTO_INCREMENT,
    22082208    rel_id      INT,
     
    22242224    time_stamp  DATETIME,
    22252225    PRIMARY KEY (relstack_id),
     2226    UNIQUE KEY (rel_id, tess_id, skycell_id, filter, stack_type, mjd_obs),
    22262227    KEY (tess_id, skycell_id),
    2227     KEY (rel_id, tess_id, skycell_id, filter, mjd_obs),
    22282228    KEY (stack_type),
    22292229    KEY (mjd_obs),
Note: See TracChangeset for help on using the changeset viewer.