代码生成模块数据库表去掉主键自增

This commit is contained in:
dataprince 2023-12-18 11:33:43 +08:00
parent 3c0ea248bc
commit 751545f4be

View File

@ -5,5 +5,12 @@ ALTER TABLE `sys_menu`
CHANGE COLUMN `query` `query_param` VARCHAR(255) NULL DEFAULT NULL COMMENT '路由参数' COLLATE 'utf8mb4_bin' AFTER `component`, 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_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`; CHANGE COLUMN `is_cache` `is_cache` INT(1) NULL DEFAULT '0' COMMENT '是否缓存0缓存 1不缓存' AFTER `is_frame`;
-- gen_table表去掉主键自增
ALTER TABLE `gen_table`
CHANGE COLUMN `table_id` `table_id` BIGINT(19) NOT NULL COMMENT '编号' FIRST;
-- gen_table_column表去掉主键自增
ALTER TABLE `gen_table_column`
CHANGE COLUMN `column_id` `column_id` BIGINT(19) NOT NULL COMMENT '编号' FIRST;