From d71c4d16165d0315ea5fe50d75577a22eb5d2ea8 Mon Sep 17 00:00:00 2001 From: wangchunsheng Date: Mon, 8 Feb 2010 05:42:07 +0000 Subject: [PATCH] * change the update sql. --- db/update0.4.sql | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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` ,