From 262d5688ab270ffb4002fb30eaffe02bfd55cc33 Mon Sep 17 00:00:00 2001 From: sunguangming Date: Fri, 16 May 2025 09:33:48 +0000 Subject: [PATCH] * Revert file. --- db/update21.6.sql | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 db/update21.6.sql diff --git a/db/update21.6.sql b/db/update21.6.sql new file mode 100644 index 0000000000..ce5506e56a --- /dev/null +++ b/db/update21.6.sql @@ -0,0 +1,3 @@ +ALTER TABLE `zt_relationoftasks` ADD COLUMN `project` mediumint(8) unsigned NOT NULL DEFAULT 0 AFTER `id`; +ALTER TABLE `zt_relationoftasks` MODIFY `execution` char(30) NOT NULL DEFAULT '' AFTER `project`; +UPDATE `zt_relationoftasks` SET `project` = (SELECT `project` FROM `zt_task` WHERE `id` = `zt_relationoftasks`.`task`);