IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 17, 2014, 12:32:26 PM (12 years ago)
Author:
eugene
Message:

merge changes (from past YEAR) into trunk

Location:
branches/eam_branches/ipp-ops-20130712/dbconfig
Files:
5 edited
2 copied

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-ops-20130712/dbconfig

  • branches/eam_branches/ipp-ops-20130712/dbconfig/README

    r31947 r37067  
    1010   edit the oldtable.md
    1111
    12 2. figure out what changes are needed to get the gpc1/isp up to the current
    13 schema.  Add those changes at the bottom of changes.txt, and modify gpc1/isp.
     122. figure out what changes are needed to get the gpc1/isp/uip/ssp up
     13   to the current schema.  Add those changes at the bottom of
     14   changes.txt, and modify gpc1/isp/uip/ssp.
    1415
    15163. edit ippTools/share/pxadmin_create_tables.sql.  This is the sql that creates
    16 an empty database.
     17   an empty database.
     18
     19
  • branches/eam_branches/ipp-ops-20130712/dbconfig/cam.md

  • branches/eam_branches/ipp-ops-20130712/dbconfig/changes.txt

    • Property svn:mergeinfo deleted
    r35898 r37067  
    23922392    state   VARCHAR(16),
    23932393    label   VARCHAR(654),
    2394     registered TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
     2394    registered TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
    23952395    fault   SMALLINT,
    23962396    PRIMARY KEY(seq_id, projection_cell),
     
    24122412-- unique keys for the release tables
    24132413
    2414 alter table relStack  add unique key (rel_id, tess_id, skycell_id, filter, stack_type, mjd_obs)
     2414alter table relStack  add unique key (rel_id, tess_id, skycell_id, filter, stack_type, mjd_obs);
    24152415alter table relExp add UNIQUE KEY(rel_id, exp_id);
    24162416alter table ippRelease add unique key (surveyID, release_name);
     
    24322432UPDATE dbversion set schema_version = '1.1.77', updated= CURRENT_TIMESTAMP();
    24332433
     2434--
     2435
     2436CREATE TABLE fullForceRun (
     2437    ff_id           BIGINT NOT NULL AUTO_INCREMENT,
     2438    skycal_id       BIGINT,
     2439    sources_path_base VARCHAR(255),
     2440    state           VARCHAR(64),
     2441    workdir         VARCHAR(255),
     2442    label           VARCHAR(64),
     2443    data_group      VARCHAR(64),
     2444    dist_group      VARCHAR(64),
     2445    note            VARCHAR(255),
     2446    reduction       VARCHAR(64),
     2447    registered TIMESTAMP DEFAULT CURRENT_TIMESTAMP, -- time run was registered
     2448    PRIMARY KEY(ff_id),
     2449    KEY(state),
     2450    KEY(label),
     2451    KEY(data_group),
     2452    KEY(skycal_id),
     2453    FOREIGN KEY(skycal_id) REFERENCES skycalRun(skycal_id)
     2454) ENGINE=innodb DEFAULT CHARSET=latin1;
     2455
     2456CREATE TABLE fullForceInput (
     2457    ff_id           BIGINT,
     2458    warp_id         BIGINT,
     2459    PRIMARY KEY(ff_id, warp_id),
     2460    FOREIGN KEY(ff_id) REFERENCES fullForceRun(ff_id),
     2461    FOREIGN KEY(warp_id) REFERENCES warpRun(warp_id)
     2462) ENGINE=innodb DEFAULT CHARSET=latin1;
     2463
     2464CREATE TABLE fullForceResult (
     2465    ff_id           BIGINT,
     2466    warp_id         BIGINT,
     2467    path_base       VARCHAR(255) NOT NULL,
     2468    dtime_script    FLOAT,
     2469    quality         SMALLINT NOT NULL,
     2470    hostname        VARCHAR(64) NOT NULL,
     2471    software_ver    VARCHAR(16),
     2472    fault           SMALLINT NOT NULL,
     2473    PRIMARY KEY(ff_id, warp_id),
     2474    KEY(fault),
     2475    KEY(quality),
     2476    FOREIGN KEY(ff_id) REFERENCES fullForceRun(ff_id),
     2477    FOREIGN KEY(warp_id) REFERENCES warpRun(warp_id)
     2478) ENGINE=innodb DEFAULT CHARSET=latin1;
     2479
     2480CREATE TABLE fullForceSummary (
     2481    ff_id           BIGINT,
     2482    path_base       VARCHAR(255) NOT NULL,
     2483    dtime_script    FLOAT,
     2484    quality         SMALLINT NOT NULL,
     2485    hostname        VARCHAR(64) NOT NULL,
     2486    software_ver    VARCHAR(16),
     2487    fault           SMALLINT NOT NULL,
     2488    PRIMARY KEY(ff_id),
     2489    KEY(fault),
     2490    KEY(quality),
     2491    FOREIGN KEY(ff_id) REFERENCES fullForceRun(ff_id)
     2492) ENGINE=innodb DEFAULT CHARSET=latin1;
     2493
     2494UPDATE dbversion set schema_version = '1.1.78', updated= CURRENT_TIMESTAMP();
     2495
     2496--
     2497
     2498CREATE TABLE remoteRun (
     2499    remote_id BIGINT NOT NULL AUTO_INCREMENT,
     2500    state     VARCHAR(64) NOT NULL,
     2501    stage     VARCHAR(64) NOT NULL,
     2502    label     VARCHAR(64) NOT NULL,
     2503    path_base VARCHAR(255) NOT NULL,
     2504    job_id    BIGINT,
     2505    last_poll TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
     2506    fault     SMALLINT NOT NULL,
     2507    PRIMARY KEY (remote_id),
     2508    KEY (state),
     2509    KEY (stage),
     2510    KEY (label),
     2511    KEY (job_id)
     2512) ENGINE=innodb DEFAULT CHARSET=latin1;   
     2513
     2514CREATE TABLE remoteComponent (
     2515    remote_id BIGINT,
     2516    stage_id  BIGINT,
     2517    KEY (stage_id),
     2518    FOREIGN KEY (remote_id) REFERENCES remoteRun(remote_id)
     2519) ENGINE=innodb DEFAULT CHARSET=latin1;   
     2520
     2521UPDATE dbversion set schema_version = '1.1.79', updated= CURRENT_TIMESTAMP();
     2522
     2523ALTER TABLE camProcessedExp ADD COLUMN astrom_chips BIGINT;
     2524UPDATE dbversion set schema_version = '1.1.79', updated= CURRENT_TIMESTAMP();
     2525
     2526
  • branches/eam_branches/ipp-ops-20130712/dbconfig/ipp.m4

    r34911 r37067  
    4040include(skycell.md)
    4141include(release.md)
     42include(ff.md)
     43include(remote.md)
Note: See TracChangeset for help on using the changeset viewer.