* adjust sql.

This commit is contained in:
wangyidong
2014-06-24 09:24:41 +00:00
parent 6f535764b6
commit 428c4be874
2 changed files with 6 additions and 3 deletions
+3 -3
View File
@@ -1,6 +1,6 @@
ALTER TABLE `zt_task` DROP `statusCustom`;
ALTER TABLE `zt_story` CHANGE `status` `status` enum('','draft','active','closed','changed') COLLATE 'utf8_general_ci' NOT NULL DEFAULT '' AFTER `estimate`;
ALTER TABLE `zt_story` CHANGE `status` `status` enum('','changed','active','draft','closed') COLLATE 'utf8_general_ci' NOT NULL DEFAULT '' AFTER `estimate`;
ALTER TABLE `zt_story` CHANGE `stage` `stage` enum('','wait','planned','projected','developing','developed','testing','tested','verified','released') COLLATE 'utf8_general_ci' NOT NULL DEFAULT 'wait' AFTER `status`;
ALTER TABLE `zt_testTask` CHANGE `status` `status` enum('wait','doing','done','blocked') COLLATE 'utf8_general_ci' NOT NULL DEFAULT 'wait' AFTER `report`;
ALTER TABLE `zt_testTask` CHANGE `status` `status` enum('blocked','doing','wait','done') COLLATE 'utf8_general_ci' NOT NULL DEFAULT 'wait' AFTER `report`;
ALTER TABLE `zt_todo` CHANGE `status` `status` enum('wait','doing','done') COLLATE 'utf8_general_ci' NOT NULL DEFAULT 'wait' AFTER `desc`;
ALTER TABLE `zt_team` CHANGE `hours` `hours` float unsigned NOT NULL DEFAULT '0' AFTER `days`;
ALTER TABLE `zt_team` CHANGE `hours` `hours` float(2,1) unsigned NOT NULL DEFAULT '0' AFTER `days`;
+3
View File
@@ -103,6 +103,8 @@ class upgradeModel extends model
$this->execSQL($this->getUpgradeFile('5.2.1'));
case '5_3':
case '6_0_beta1':
$this->execSQL($this->getUpgradeFile('6.0.beta1'));
$this->toLowerTable();
$this->fixBugOSInfo();
$this->fixTaskFinishedBy();
@@ -164,6 +166,7 @@ class upgradeModel extends model
case '5_2':
case '5_2_1': $confirmContent .= file_get_contents($this->getUpgradeFile('5.2.1'));
case '5_3':
case '6_0_beta1': $confirmContent .= file_get_contents($this->getUpgradeFile('6.0.beta1'));
}
return str_replace('zt_', $this->config->db->prefix, $confirmContent);
}