Changeset 31378
- Timestamp:
- Apr 25, 2011, 3:03:32 PM (15 years ago)
- Location:
- trunk/dbconfig
- Files:
-
- 2 edited
-
add.md (modified) (1 diff)
-
changes.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/dbconfig/add.md
r28181 r31378 2 2 addRun METADATA 3 3 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) 5 6 state STR 64 # Key 6 7 workdir STR 255 -
trunk/dbconfig/changes.txt
r31038 r31378 2057 2057 2058 2058 UPDATE dbversion set schema_version = '1.1.69', updated= CURRENT_TIMESTAMP(); 2059 2060 2061 2059 ALTER TABLE addRun ADD COLUMN stage VARCHAR(64) AFTER add_id; 2060 ALTER TABLE addRun ADD COLUMN stage_id bigint(20) after stage; 2061 UPDATE 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 2066 show create table addRun; 2067 alter 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.
