IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 31378


Ignore:
Timestamp:
Apr 25, 2011, 3:03:32 PM (15 years ago)
Author:
heather
Message:

merging addstar changes

Location:
trunk/dbconfig
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dbconfig/add.md

    r28181 r31378  
    22addRun METADATA
    33    add_id          S64     0       # Primary Key AUTO_INCREMENT
    4     cam_id          S64     0       # Key INDEX(add_id,cam_id) fkey(cam_id) ref camRun(cam_id)
     4    stage           STR     64      # what the stage is (warp, cam, diff,
     5    stage_id          S64     0       # Key INDEX(add_id,cam_id) fkey(cam_id) ref camRun(cam_id)
    56    state           STR     64      # Key
    67    workdir         STR     255
  • trunk/dbconfig/changes.txt

    r31038 r31378  
    20572057
    20582058UPDATE dbversion set schema_version = '1.1.69', updated= CURRENT_TIMESTAMP();
    2059 
    2060 
    2061 
     2059ALTER TABLE addRun ADD COLUMN stage VARCHAR(64) AFTER add_id;
     2060ALTER TABLE addRun ADD COLUMN stage_id bigint(20) after stage;
     2061UPDATE addRun set stage_id = cam_id;
     2062
     2063-- these next steps I don't know if it's generic or not. This is how to drop
     2064   the cam_id table in addRun for gpc1
     2065
     2066show create table addRun;
     2067alter table `addRun` drop foreign key `addRun_ibfk_1`, drop column cam_id;
     2068
     2069-- this sets the addRun stage for all the old addRuns to 'cam'
     2070
     2071
     2072--do this update only once, so I'm commenting it out (it's been done)
     2073-- update addRun set stage = 'cam';
     2074
     2075
Note: See TracChangeset for help on using the changeset viewer.