From 288b985be6ca49a60a009540e134e7ab7146735f Mon Sep 17 00:00:00 2001 From: JackWuLieHao Date: Fri, 30 Mar 2018 13:35:32 +0800 Subject: [PATCH] * Finish Task #3786 --- db/update9.8.2.sql | 1 + db/zentao.sql | 2 +- module/upgrade/model.php | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/db/update9.8.2.sql b/db/update9.8.2.sql index f4fa1b6dc5..bef6bbb008 100644 --- a/db/update9.8.2.sql +++ b/db/update9.8.2.sql @@ -1,2 +1,3 @@ ALTER TABLE `zt_team` DROP PRIMARY KEY; ALTER TABLE `zt_team` ADD PRIMARY KEY (`root`, `type`, `account`); +ALTER TABLE `zt_team` CHANGE `team` `team` varchar(90) NOT NULL; diff --git a/db/zentao.sql b/db/zentao.sql index d810827238..1c6dbc5d9d 100644 --- a/db/zentao.sql +++ b/db/zentao.sql @@ -486,7 +486,7 @@ CREATE TABLE IF NOT EXISTS `zt_project` ( `PM` varchar(30) NOT NULL default '', `QD` varchar(30) NOT NULL default '', `RD` varchar(30) NOT NULL default '', - `team` varchar(30) NOT NULL, + `team` varchar(90) NOT NULL, `acl` enum('open','private','custom') NOT NULL default 'open', `whitelist` text NOT NULL, `order` mediumint(8) unsigned NOT NULL, diff --git a/module/upgrade/model.php b/module/upgrade/model.php index dceb19bdcb..5ef63f22c4 100644 --- a/module/upgrade/model.php +++ b/module/upgrade/model.php @@ -212,6 +212,8 @@ class upgradeModel extends model $this->fixTaskAssignedTo(); $this->fixProjectClosedInfo(); $this->resetProductLine(); + case '9_8_2': + $this->execSQL($this->getUpgradeFile('9.8.2')); } $this->deletePatch(); @@ -317,6 +319,7 @@ class upgradeModel extends model case '9_7': $confirmContent .= file_get_contents($this->getUpgradeFile('9.7')); case '9_8': case '9_8_1': $confirmContent .= file_get_contents($this->getUpgradeFile('9.8.1')); + case '9_8_2': $confirmContent .= file_get_contents($this->getUpgradeFile('9.8.2')); } return str_replace('zt_', $this->config->db->prefix, $confirmContent); }