optimize: move the code that might be wrong and put it last in schema-mysql.sql

This commit is contained in:
li-guohao 2024-04-04 15:10:08 +08:00
parent 0e67b31b98
commit 9a0b4df2bf

View File

@ -458,7 +458,6 @@ alter table blossom_folder
modify icon varchar(255) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL default '' comment '图标';
alter table blossom_folder
modify sort int NOT NULL default 1 comment '排序';
alter table blossom_folder add column star_status tinyint(1) NOT NULL DEFAULT 0 COMMENT '收藏 0:否,1:是';
-- ----------------------------
-- Records of blossom_folder
@ -639,4 +638,7 @@ CREATE TABLE IF NOT EXISTS `base_user_param`
UNIQUE KEY `unq_bup_userid_paramname` (`user_id`, `param_name`) COMMENT '用户参数唯一'
) ENGINE = InnoDB
DEFAULT CHARSET = utf8mb4 COMMENT = '用户参数'
COLLATE = utf8mb4_bin;
COLLATE = utf8mb4_bin;
-- Code that might be wrong goes last
alter table blossom_folder add column star_status tinyint(1) NOT NULL DEFAULT 0 COMMENT '收藏 0:否,1:是';