From 4e7d0af153b1f1cc7183c3304c6dfea5e8fab21f Mon Sep 17 00:00:00 2001 From: dataprince Date: Fri, 15 Dec 2023 11:41:13 +0800 Subject: [PATCH] =?UTF-8?q?sys=5Fmenu=E8=8F=9C=E5=8D=95=E8=A1=A8=E7=BB=93?= =?UTF-8?q?=E6=9E=84=E4=BF=AE=E6=94=B9=E3=80=81=E5=8E=BB=E6=8E=89=E4=B8=BB?= =?UTF-8?q?=E9=94=AE=E8=87=AA=E5=A2=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sql/mysql/update.sql | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 sql/mysql/update.sql diff --git a/sql/mysql/update.sql b/sql/mysql/update.sql new file mode 100644 index 0000000..a166d05 --- /dev/null +++ b/sql/mysql/update.sql @@ -0,0 +1,9 @@ +-- sys_menu菜单表结构修改、去掉主键自增 +ALTER TABLE `sys_menu` + CHANGE COLUMN `menu_id` `menu_id` BIGINT(19) NOT NULL COMMENT '菜单ID' FIRST, + CHANGE COLUMN `order_num` `order_num` INT(4) NULL DEFAULT '0' COMMENT '显示顺序' AFTER `parent_id`, + CHANGE COLUMN `query` `query_param` VARCHAR(255) NULL DEFAULT NULL COMMENT '路由参数' COLLATE 'utf8mb4_bin' AFTER `component`, + CHANGE COLUMN `is_frame` `is_frame` INT(1) NULL DEFAULT '1' COMMENT '是否为外链(0是 1否)' AFTER `query_param`, + CHANGE COLUMN `is_cache` `is_cache` INT(1) NULL DEFAULT '0' COMMENT '是否缓存(0缓存 1不缓存)' AFTER `is_frame`; + +