From c23d23159ae3bd10b34bb24c5d1f4f53715d4838 Mon Sep 17 00:00:00 2001 From: dataprince Date: Sun, 1 Oct 2023 11:23:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=BA=93=E8=A1=A8=E7=BB=93?= =?UTF-8?q?=E6=9E=84=E5=8E=BB=E6=8E=89=E8=87=AA=E5=A2=9E=E4=B8=BB=E9=94=AE?= =?UTF-8?q?=EF=BC=9Asys=5Fconfig=E3=80=81sys=5Fnotice=E3=80=81sys=5Fpost?= =?UTF-8?q?=E3=80=81sys=5Fdict=5Ftype=E3=80=81sys=5Fdict=5Fdata=E3=80=81sy?= =?UTF-8?q?s=5Fdept?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sql/update.sql | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/sql/update.sql b/sql/update.sql index f7685cc..f54ba71 100644 --- a/sql/update.sql +++ b/sql/update.sql @@ -537,5 +537,21 @@ ALTER TABLE `sys_user` CHANGE COLUMN `sex` `gender` CHAR(1) NULL DEFAULT '0' COM ALTER TABLE `sys_dept` CHANGE COLUMN `del_flag` `del_flag` CHAR(1) NULL DEFAULT '0' COMMENT '删除标志(0代表存在 1代表删除)' COLLATE 'utf8mb4_bin' AFTER `status`; +-- 数据库表去掉自增主键: ALTER TABLE `sys_role` CHANGE COLUMN `role_id` `role_id` BIGINT(19) NOT NULL COMMENT '角色ID' FIRST; +ALTER TABLE `sys_config` + CHANGE COLUMN `config_id` `config_id` BIGINT(19) NOT NULL COMMENT '参数主键' FIRST; +ALTER TABLE `sys_notice` + CHANGE COLUMN `notice_id` `notice_id` BIGINT(19) NOT NULL COMMENT '公告ID' FIRST; +ALTER TABLE `sys_post` + CHANGE COLUMN `post_id` `post_id` BIGINT(19) NOT NULL COMMENT '岗位ID' FIRST; +ALTER TABLE `sys_dict_type` + CHANGE COLUMN `dict_id` `dict_id` BIGINT(19) NOT NULL COMMENT '字典主键' FIRST; +ALTER TABLE `sys_dict_data` + CHANGE COLUMN `dict_code` `dict_code` BIGINT(19) NOT NULL COMMENT '字典编码' FIRST; +ALTER TABLE `sys_dept` + CHANGE COLUMN `dept_id` `dept_id` BIGINT(19) NOT NULL COMMENT '部门id' FIRST; +ALTER TABLE `sys_dept` + CHANGE COLUMN `ancestors` `ancestors` VARCHAR(760) NULL DEFAULT '' COMMENT '祖级列表' COLLATE 'utf8mb4_bin' AFTER `parent_id`; +