IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 19365


Ignore:
Timestamp:
Sep 4, 2008, 2:20:11 PM (18 years ago)
Author:
eugene
Message:

sql to add label, reduction, data_state to diff, stack, warp tables; updates for flatcorr

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dbconfig/changes.txt

    r19334 r19365  
    395395alter table stackRun add column filter varchar(64) after tess_id;
    396396
    397 --
     397-- changes to the flatcorr tables : no valid flatcorr tables have been created to date expect my tests
     398-- this sql just drops and recreates the flatcorrRun with the correct layout
    398399
    399400delete from flatcorrExp;
    400 
    401401delete from flatcorrRun;
    402 alter table flatcorrRun add column reduction varchar(255) after stats;
    403402
    404403drop table flatcorrExp;
     404drop table flatcorrRun;
     405
     406CREATE TABLE flatcorrRun (
     407        corr_id BIGINT AUTO_INCREMENT,
     408        dvodb VARCHAR(64),
     409        filter VARCHAR(64),
     410        state VARCHAR(64),
     411        workdir VARCHAR(255),
     412        label VARCHAR(64),
     413        reduction VARCHAR(64),
     414        region VARCHAR(64),
     415        hostname VARCHAR(64),
     416        fault SMALLINT NOT NULL,
     417        PRIMARY KEY(corr_id),
     418        KEY(corr_id)
     419) ENGINE=innodb DEFAULT CHARSET=latin1;
    405420
    406421CREATE TABLE flatcorrChipLink (
     
    422437) ENGINE=innodb DEFAULT CHARSET=latin1;
    423438
     439-- I initially defined flatcorrCamLin without the chip_id entry.  this
     440-- command corrects for that, but should not be needed widely.
    424441-- ALTER TABLE flatcorrCamLink ADD COLUMN chip_id BIGINT AFTER corr_id;
    425 
    426 ALTER TABLE chipProcessedImfile ADD COLUMN data_state VARCHAR(64) AFTER
    427 class_id;
     442-- alter table flatcorrRun add column hostname varchar(64) after region;
     443-- alter table flatcorrRun add column fault smallint after hostname;
     444-- alter table flatcorrRun add column reduction varchar(64) after stats;
     445
     446-- changes to the chip tables to support cleanup and reprocessing
     447
     448ALTER TABLE chipProcessedImfile ADD COLUMN data_state VARCHAR(64) AFTER class_id;
    428449UPDATE chipProcessedImfile SET data_state = 'full';
     450
     451-- I have added 'label' and 'reduction' entries to stack and diff
     452
     453ALTER TABLE stackRun ADD COLUMN label VARCHAR(64) AFTER workdir;
     454ALTER TABLE stackRun ADD COLUMN reduction VARCHAR(64) AFTER label;
     455
     456ALTER TABLE stackSumSkyfile add column data_state varchar(64) after path_base;
     457UPDATE stackSumSkyfile SET data_state = 'full';
     458
     459alter table diffRun add column label varchar(64) after workdir;
     460alter table diffRun add column reduction varchar(64) after label;
     461
     462ALTER TABLE diffSkyfile add column data_state varchar(64) after path_base;
     463UPDATE diffSkyfile SET data_state = 'full';
     464
     465ALTER TABLE warpSkyfile add column data_state varchar(64) after path_base;
     466UPDATE warpSkyfile SET data_state = 'full';
     467
Note: See TracChangeset for help on using the changeset viewer.