IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 30, 2008, 4:19:52 PM (18 years ago)
Author:
jhoblitt
Message:

add epoch fields to pz*, new*, & raw* tables

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dbconfig/changes.txt

    r17804 r17872  
    1 How to manually change the database between versions via mySQL commands.
    2 
    3 This file is generated manually, and may not be complete.
     1-- How to manually change the database between versions via mySQL commands.
     2--
     3-- This file is generated manually, and may not be complete.
    44
    55
    6 Version 1.1.20 --> 1.1.21:
     6-- Version 1.1.20 --> 1.1.21:
    77
    88alter table camProcessedExp drop nastro;
     
    1414
    1515
    16 Version 1.1.22 --> 1.1.23
    17 # Adding support for reduction classes (which are used to specify recipes for parts of the pipeline).
     16-- Version 1.1.22 --> 1.1.23
     17-- Adding support for reduction classes (which are used to specify recipes for parts of the pipeline).
    1818# Adding 'reduction' to detRun
    1919# Renaming 'recipe' in {chip,cam}{Pending,Processed}Exp to 'reduction'
     
    2525alter table camProcessedExp change column recipe reduction varchar(64);
    2626
    27 Version ??? --> 1.1.29
     27-- Version ??? --> 1.1.29
    2828
    2929alter table warpSkyfile add column ignored tinyint after good_frac;
    3030
    31 #
    32 # The following set of changes were applied to update the gpc1 database on 2008/02/07
    33 #
     31--
     32-- The following set of changes were applied to update the gpc1 database on 2008/02/07
     33--
    3434
    3535alter table calDB change column catdir dvodb varchar(64);
     
    3838alter table camProcessedExp change column fwhm_range fwhm_minor float;
    3939
    40 # In order to keep the column order correct this is split up below
    41 #alter table camProcessedExp add column ( bias float, bias_stdev float, fringe_0 float, fringe_1 float, fringe_2 float, ap_resid float, ap_resid_stdev float, dtime_detrend float, dtime_photom float, dtime_astrom float, hostname varchar(64) );
     40-- In order to keep the column order correct this is split up below
     41--alter table camProcessedExp add column ( bias float, bias_stdev float, fringe_0 float, fringe_1 float, fringe_2 float, ap_resid float, ap_resid_stdev float, dtime_detrend float, dtime_photom float, dtime_astrom float, hostname varchar(64) );
    4242
    4343alter table camProcessedExp add column bias float after bg_mean_stdev;
     
    5757alter table chipProcessedImfile change column fwhm_range fwhm_minor float;
    5858
    59 # In order to keep the column order correct this is split up below
    60 #alter table chipProcessedImfile add column ( zp_mean float, zp_stdev float, dtime_detrend float, dtime_photom float, dtime_astrom float, hostname varchar(64) );
     59-- In order to keep the column order correct this is split up below
     60-- alter table chipProcessedImfile add column ( zp_mean float, zp_stdev float, dtime_detrend float, dtime_photom float, dtime_astrom float, hostname varchar(64) );
    6161
    6262alter table chipProcessedImfile add column zp_mean float after ap_resid_stdev;
     
    6868
    6969
    70 # In order to keep the column order correct this is split up below
    71 #alter table diffSkyfile add column ( dtime_diff float, hostname varchar(64) );
     70-- In order to keep the column order correct this is split up below
     71-- alter table diffSkyfile add column ( dtime_diff float, hostname varchar(64) );
    7272alter table diffSkyfile add column dtime_diff float after bg_stdev;
    7373alter table diffSkyfile add column hostname varchar(64) after dtime_diff;
     
    7878alter table stackSumSkyfile change column good_frac good_frac float;
    7979
    80 #alter table stackSumSkyfile add column ( dtime_stack float, hostname varchar(64) );
     80-- alter table stackSumSkyfile add column ( dtime_stack float, hostname varchar(64) );
    8181alter table stackSumSkyfile add column dtime_stack float after bg_stdev;
    8282alter table stackSumSkyfile add column hostname varchar(64) after dtime_stack;
     
    112112alter table pzDoneImfile add column fault smallint(6);
    113113
    114 ######## end of changes to 1.1.29
     114-- end of changes to 1.1.29
    115115
    116116alter table newExp add column label varchar(64) after end_stage;
    117117
    118 ### 1.1.30
     118-- 1.1.30
    119119
    120120drop table pzDoneExp;
     
    124124alter table flatcorrRun add column region VARCHAR(255) after stats;
    125125
    126 ### 1.1.31
     126-- 1.1.31
    127127
    128128ALTER TABLE warpRun ADD COLUMN cam_id BIGINT AFTER warp_id;
     
    139139DROP TABLE warpInputExp;
    140140
    141 ### 1.1.32
     141-- 1.1.32
    142142ALTER TABLE warpRun ADD COLUMN label VARCHAR(64) AFTER workdir_state;
    143143ALTER TABLE warpRun ADD KEY(label);
    144144CREATE TABLE warpMask (label VARCHAR(64), PRIMARY KEY(label)) ENGINE=innodb;
    145145
    146 ### 1.1.33
     146-- 1.1.33
    147147ALTER TABLE summitExp ADD COLUMN fault smallint(6) NOT NULL AFTER imfiles;
    148148ALTER TABLE summitExp ADD KEY(fault);
    149149
    150 ### 1.1.34
     150-- 1.1.34
    151151ALTER TABLE rawImfile ADD KEY(exp_name);
    152152
    153 ### 1.1.35
     153-- 1.1.35
    154154ALTER TABLE rawImfile ADD INDEX UNQIUE(exp_id, tmp_class_id);
    155155
    156 ### 1.1.36
     156-- 1.1.36
    157157ALTER TABLE warpSkyfile ADD COLUMN (xmin INT, xmax INT, ymin INT, ymax INT);
    158158ALTER TABLE diffSkyfile ADD COLUMN (stamps_num INT, stamps_rms FLOAT, sources INT);
    159159ALTER TABLE rawImfile ADD COLUMN hostname VARCHAR(64) AFTER solang;
    160160ALTER TABLE rawExp ADD COLUMN hostname VARCHAR(64) AFTER object;
     161
     162-- 1.1.37
     163ALTER TABLE pzDataStore ADD COLUMN epoch TIMESTAMP DEFAULT CURRENT_TIMESTAMP AFTER uri;
     164ALTER TABLE summitExp ADD COLUMN epoch TIMESTAMP DEFAULT CURRENT_TIMESTAMP AFTER fault;
     165ALTER TABLE summitImfile ADD COLUMN epoch TIMESTAMP DEFAULT CURRENT_TIMESTAMP AFTER uri;
     166ALTER TABLE pzDownloadExp ADD COLUMN epoch TIMESTAMP DEFAULT CURRENT_TIMESTAMP AFTER state;
     167ALTER TABLE pzDownloadImfile ADD COLUMN epoch TIMESTAMP DEFAULT CURRENT_TIMESTAMP AFTER fault;
     168ALTER TABLE newExp ADD COLUMN epoch TIMESTAMP DEFAULT CURRENT_TIMESTAMP AFTER label;
     169ALTER TABLE newImfile ADD COLUMN epoch TIMESTAMP DEFAULT CURRENT_TIMESTAMP AFTER uri;
     170ALTER TABLE rawExp ADD COLUMN epoch TIMESTAMP DEFAULT CURRENT_TIMESTAMP AFTER fault;
     171ALTER TABLE rawImfile ADD COLUMN epoch TIMESTAMP DEFAULT CURRENT_TIMESTAMP AFTER fault;
     172
     173
Note: See TracChangeset for help on using the changeset viewer.