From 9a0b4df2bf6cbd068d851a9ae2801b09166e0e98 Mon Sep 17 00:00:00 2001 From: li-guohao Date: Thu, 4 Apr 2024 15:10:08 +0800 Subject: [PATCH] optimize: move the code that might be wrong and put it last in schema-mysql.sql --- blossom-backend/backend/src/main/resources/schema-mysql.sql | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/blossom-backend/backend/src/main/resources/schema-mysql.sql b/blossom-backend/backend/src/main/resources/schema-mysql.sql index 04700eb..4166b7a 100644 --- a/blossom-backend/backend/src/main/resources/schema-mysql.sql +++ b/blossom-backend/backend/src/main/resources/schema-mysql.sql @@ -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; \ No newline at end of file + 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:是'; \ No newline at end of file