From 08ddf18cf7253a31e34e24871c9f005b9f1023e3 Mon Sep 17 00:00:00 2001 From: liugang Date: Mon, 15 May 2023 17:04:20 +0800 Subject: [PATCH] + database: delete the unused blocks when ugprade. --- db/update20.0.sql | 2 ++ 1 file changed, 2 insertions(+) diff --git a/db/update20.0.sql b/db/update20.0.sql index 6c3efaffe5..b15f35efaa 100644 --- a/db/update20.0.sql +++ b/db/update20.0.sql @@ -1,3 +1,5 @@ +DELETE FROM `zt_block` WHERE `type` IN ('news', 'patch', 'plugin', 'puglicclass'); + ALTER TABLE `zt_block` ADD `dashboard` varchar(20) NOT NULL DEFAULT '' AFTER `account`; ALTER TABLE `zt_block` ADD `createdDate` date NULL AFTER `height`; ALTER TABLE `zt_block` CHANGE `block` `code` varchar(30) NOT NULL DEFAULT '' AFTER `module`;