IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 16353


Ignore:
Timestamp:
Feb 7, 2008, 11:20:44 AM (18 years ago)
Author:
bills
Message:

Reviewed the database changes since 2007/12/15 and corrected and augmented
the sql commands needed to update a database to this schema.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dbconfig/changes.txt

    r16317 r16353  
    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#
     34
    3135alter table calDB change column catdir dvodb varchar(64);
    3236
    33 alter table camProcessedExp add column ( bias double, bias_stdev double, fringe_0 double, fringe_1 double, fringe_2 double, ap_resid double, ap_resid_stdev double, fwhm_major double, fwhm_minor double, dtime_detrend double, dtime_photom double, dtime_astrom double, hostname varchar(64) );
    34 alter table camProcessedExp drop column fwhm;
    35 alter table camProcessedExp drop column fwhm_range;
     37alter table camProcessedExp change column fwhm fwhm_major float;
     38alter table camProcessedExp change column fwhm_range fwhm_minor float;
    3639
    37 alter table chipProcessedImfile add column ( zp_mean double, zp_stdev double, fwhm_major double, fwhm_minor double, dtime_detrend double, dtime_photom double, dtime_astrom double, hostname varchar(64) );
    38 alter table chipProcessedImfile drop column fwhm;
    39 alter table chipProcessedImfile drop column fwhm_range;
     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) );
    4042
    41 alter table diffSkyfile add column ( dtime_diff double, hostname varchar(64) );
     43alter table camProcessedExp add column bias float after bg_mean_stdev;
     44alter table camProcessedExp add column bias_stdev float after bias;
     45alter table camProcessedExp add column fringe_0 float after bias_stdev;
     46alter table camProcessedExp add column fringe_1 float after fringe_0;
     47alter table camProcessedExp add column fringe_2 float after fringe_1;
     48alter table camProcessedExp add column ap_resid float after sigma_dec;
     49alter table camProcessedExp add column ap_resid_stdev float after ap_resid;
     50alter table camProcessedExp add column dtime_detrend float after fwhm_minor;
     51alter table camProcessedExp add column dtime_photom float after dtime_detrend;
     52alter table camProcessedExp add column dtime_astrom float after dtime_photom;
     53alter table camProcessedExp add column hostname varchar(64) after dtime_astrom;
    4254
    43 alter table flatcorrRun add column filter varchar(64);
    4455
    45 alter table stackSumSkyfile add column ( dtime_stack double, hostname varchar(64) );
     56alter table chipProcessedImfile change column fwhm fwhm_major float;
     57alter table chipProcessedImfile change column fwhm_range fwhm_minor float;
    4658
    47 alter table warpSkyfile add column ( dtime_warp double, 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) );
    4861
    49 alter table newExp add column tess_id varchar(64);
    50 alter table rawExp add column tess_id varchar(64);
    51 alter table chipRun add column tess_id varchar(64);
    52 alter table camRun add column tess_id varchar(64);
    53 alter table warpRun add column tess_id varchar(64);
     62alter table chipProcessedImfile add column zp_mean float after ap_resid_stdev;
     63alter table chipProcessedImfile add column zp_stdev float after zp_mean;
     64alter table chipProcessedImfile add column dtime_detrend float after fwhm_minor;
     65alter table chipProcessedImfile add column dtime_photom float after dtime_detrend;
     66alter table chipProcessedImfile add column dtime_astrom float after dtime_photom;
     67alter table chipProcessedImfile add column hostname varchar(64) after dtime_astrom;
    5468
    55 alter table camRun add column end_stage varchar(64);
    56 alter table chipRun add column end_stage varchar(64);
    57 alter table warpRun add column end_stage varchar(64);
    58 alter table newExp add column end_stage varchar(64);
    59 alter table rawExp add column end_stage varchar(64);
     69
     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) );
     72alter table diffSkyfile add column dtime_diff float after bg_stdev;
     73alter table diffSkyfile add column hostname varchar(64) after dtime_diff;
     74alter table diffSkyfile change column good_frac good_frac float;
     75
     76alter table flatcorrRun add column filter varchar(64) after dvodb;
     77
     78alter table stackSumSkyfile change column good_frac good_frac float;
     79
     80#alter table stackSumSkyfile add column ( dtime_stack float, hostname varchar(64) );
     81alter table stackSumSkyfile add column dtime_stack float after bg_stdev;
     82alter table stackSumSkyfile add column hostname varchar(64) after dtime_stack;
     83
     84#alter table warpSkyfile add column ( dtime_warp float, hostname varchar(64) );
     85alter table warpSkyfile add column dtime_warp float after bg_stdev;
     86alter table warpSkyfile add column hostname varchar(64) after dtime_warp;
     87
     88alter table warpSkyfile change column good_frac good_frac float;
     89
     90alter table newExp add column dvodb varchar(255) after reduction;
     91alter table newExp add column tess_id varchar(64) after dvodb;
     92alter table rawExp add column dvodb varchar(255) after reduction;
     93alter table rawExp add column tess_id varchar(64) after dvodb;
     94alter table chipRun add column tess_id varchar(64) after dvodb;
     95alter table camRun add column tess_id varchar(64) after dvodb;
     96alter table warpRun add column tess_id varchar(64) after dvodb;
     97
     98alter table camRun add column end_stage varchar(64) after tess_id;
     99alter table chipRun add column end_stage varchar(64) after tess_id;
     100alter table warpRun add column end_stage varchar(64) after tess_id;
     101alter table newExp add column end_stage varchar(64) after tess_id;
     102alter table rawExp add column end_stage varchar(64) after tess_id;
    60103alter table camRun add key (end_stage);
    61104alter table chipRun add key (end_stage);
     
    64107alter table rawExp add key (end_stage);
    65108
    66 alter table warpRun add column workdir_state varchar(64);
     109alter table warpRun add column workdir_state varchar(64) after workdir;
    67110alter table warpRun add key (workdir_state);
    68111
     112alter table pzDoneImfile add column fault smallint(6);
     113
     114
     115######## end of changes to 1.1.29
Note: See TracChangeset for help on using the changeset viewer.