diff --git a/db/update0.4.sql b/db/update0.4.sql index 5d444c5928..38a4a899f5 100644 --- a/db/update0.4.sql +++ b/db/update0.4.sql @@ -64,7 +64,8 @@ ALTER TABLE `zt_story` ADD `reviewedBy` VARCHAR( 30 ) NOT NULL AFTER `lastEdited ALTER TABLE `zt_story` ADD `reviewedDate` DATETIME NOT NULL AFTER `reviewedBy`; UPDATE zt_story SET version = 1 WHERE version = 0; UPDATE zt_story SET status = 'closed', closedReason = 'done', stage='released', closedBy = lastEditedBy, closedDate = lastEditedDate WHERE status = 'done'; -UPDATE zt_story SET status = 'active' WHERE status = 'wait' OR status = 'doing'; +UPDATE zt_story SET status = 'draft' WHERE status = 'wait'; +UPDATE zt_story SET status = 'active' WHERE status = 'doing'; ALTER TABLE `zt_story` CHANGE `bug` `fromBug` MEDIUMINT( 8 ) UNSIGNED NOT NULL DEFAULT '0'; ALTER TABLE `zt_story` ADD `toBug` MEDIUMINT NOT NULL AFTER `closedReason`; ALTER TABLE `zt_story` ADD `childStories` VARCHAR( 255 ) NOT NULL AFTER `toBug` ,