From 7bde7c05bcba15ff1a486272e39ccc0dd04ea030 Mon Sep 17 00:00:00 2001 From: dataprince Date: Tue, 19 Dec 2023 16:06:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9mysql=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=BA=93=E8=A1=A8=E7=9A=84del=5Fflag=E5=AD=97=E6=AE=B5?= =?UTF-8?q?=E4=B8=BAsmallint=E7=B1=BB=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sql/mysql/update.sql | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/sql/mysql/update.sql b/sql/mysql/update.sql index e714456..6cfd183 100644 --- a/sql/mysql/update.sql +++ b/sql/mysql/update.sql @@ -12,5 +12,18 @@ ALTER TABLE `gen_table` ALTER TABLE `gen_table_column` CHANGE COLUMN `column_id` `column_id` BIGINT(19) NOT NULL COMMENT '编号' FIRST; +ALTER TABLE `sys_tenant` DROP COLUMN `create_dept`; + +-- 修改数据库表的del_flag字段为smallint类型 +ALTER TABLE `sys_client` + CHANGE COLUMN `del_flag` `del_flag` SMALLINT NULL DEFAULT '0' COMMENT '删除标志(0代表存在 1代表删除)' COLLATE 'utf8mb4_bin' AFTER `status`; +ALTER TABLE `sys_dept` + CHANGE COLUMN `del_flag` `del_flag` SMALLINT NULL DEFAULT '0' COMMENT '删除标志(0代表存在 1代表删除)' COLLATE 'utf8mb4_bin' AFTER `status`; +ALTER TABLE `sys_role` + CHANGE COLUMN `del_flag` `del_flag` SMALLINT NULL DEFAULT '0' COMMENT '删除标志(0代表存在 1代表删除)' COLLATE 'utf8mb4_bin' AFTER `status`; +ALTER TABLE `sys_tenant` + CHANGE COLUMN `del_flag` `del_flag` SMALLINT NULL DEFAULT '0' COMMENT '删除标志(0代表存在 1代表删除)' COLLATE 'utf8mb4_bin' AFTER `status`; +ALTER TABLE `sys_user` + CHANGE COLUMN `del_flag` `del_flag` SMALLINT NULL DEFAULT '0' COMMENT '删除标志(0代表存在 1代表删除)' COLLATE 'utf8mb4_bin' AFTER `status`;