From 0d8410cdca900e3ddbb119200bd3f8181d56d760 Mon Sep 17 00:00:00 2001 From: hufangzhou Date: Thu, 9 Feb 2023 06:05:51 +0000 Subject: [PATCH] * Change update sql. --- db/zentaopms284.sql | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db/zentaopms284.sql b/db/zentaopms284.sql index 9137def6cc..91fe06b398 100644 --- a/db/zentaopms284.sql +++ b/db/zentaopms284.sql @@ -3,4 +3,4 @@ update `zt_task` set `assignedTo` = '' where `mode` = 'multi' and `status` != 'd REPLACE INTO `zt_lang` (`lang`, `module`, `section`, `key`, `value`, `system`, `vision`) SELECT `lang`, `module`, 'scrumClassify', `key`, `value`, `system`, `vision` FROM `zt_lang` WHERE `module` = 'process' and `section` = 'classify' ORDER BY id ASC; REPLACE INTO `zt_lang` (`lang`, `module`, `section`, `key`, `value`, `system`, `vision`) SELECT `lang`, `module`, 'agileplusClassify', `key`, `value`, `system`, `vision` FROM `zt_lang` WHERE `module` = 'process' and `section` = 'classify' ORDER BY id ASC; -UPDATE `zt_project` AS child INNER JOIN (select `id`,`attribute` from `zt_project` where `parent` != 0 and `type` = 'stage') AS parent ON child.`parent` = parent.`id` SET child.`attribute`=parent.`attribute`; +UPDATE `zt_project` AS parent INNER JOIN (select `id`,`parent`,`attribute` from `zt_project` where `parent` != 0 and `type` = 'stage') AS child ON parent.`id` = child.`parent` SET parent.`attribute`='mix' where parent.`grade`=1 and parent.`type`='stage' and parent.`attribute` != child.`attribute`;