From ba9b5130cbb06c9346e188ffd493bc8c998956e1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=80=A1=E6=A0=8B?= Date: Mon, 23 Aug 2021 13:55:25 +0800 Subject: [PATCH] * adjust for upgrade. --- db/update12.5.3.sql | 1 + module/upgrade/model.php | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/db/update12.5.3.sql b/db/update12.5.3.sql index b9eb64078d..68f393fde4 100644 --- a/db/update12.5.3.sql +++ b/db/update12.5.3.sql @@ -30,6 +30,7 @@ ALTER TABLE `zt_burn` CHANGE `project` `execution` mediumint(8) unsigned NOT NUL ALTER TABLE `zt_doc` CHANGE `project` `execution` mediumint(8) unsigned NOT NULL; ALTER TABLE `zt_relation` CHANGE `project` `execution` mediumint(8) unsigned NOT NULL; ALTER TABLE `zt_relation` CHANGE `program` `project` mediumint(8) unsigned NOT NULL; +ALTER TABLE `zt_case` CHANGE `project` `execution` mediumint(8) unsigned NOT NULL; ALTER TABLE `zt_doclib` CHANGE `project` `execution` mediumint(8) unsigned NOT NULL; ALTER TABLE `zt_task` CHANGE `project` `execution` mediumint(8) unsigned NOT NULL; ALTER TABLE `zt_testreport` CHANGE `project` `execution` mediumint(8) unsigned NOT NULL; diff --git a/module/upgrade/model.php b/module/upgrade/model.php index 15029f57b7..bc6e6061d6 100644 --- a/module/upgrade/model.php +++ b/module/upgrade/model.php @@ -698,6 +698,7 @@ class upgradeModel extends model $this->appendExec('15_2'); case '15_3': $this->saveLogs('Execute 15_3'); + $this->execSQL($this->getUpgradeFile('15.3')); $this->adjustBugRequired(); $this->processTesttaskDate(); $this->processDocTempContent(); @@ -894,7 +895,7 @@ class upgradeModel extends model case '15_0_2': $confirmContent .= file_get_contents($this->getUpgradeFile('15.0.2')); case '15_0_3': $confirmContent .= file_get_contents($this->getUpgradeFile('15.0.3')); case '15_2': $confirmContent .= file_get_contents($this->getUpgradeFile('15.2')); - case '15_3': + case '15_3': $confirmContent .= file_get_contents($this->getUpgradeFile('15.3')); } return str_replace('zt_', $this->config->db->prefix, $confirmContent); }