diff --git a/db/magic-boot.sql b/db/magic-boot.sql index 2c5cadf..b8d6e9b 100644 --- a/db/magic-boot.sql +++ b/db/magic-boot.sql @@ -117,6 +117,8 @@ CREATE TABLE `sys_dynamic_component` ( `source_code` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '源码', `compile_js` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '编译js', `compile_css` longtext CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL COMMENT '编译css', + `type` int NULL DEFAULT NULL COMMENT '0:分组,1:vue组件', + `remark` text CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL, `is_del` int NULL DEFAULT 0 COMMENT '删除标识:0未删除,1已删除', `create_by` varchar(36) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '创建人', `create_date` datetime NULL DEFAULT NULL COMMENT '创建时间', diff --git a/db/update20240410.sql b/db/update20240410.sql new file mode 100644 index 0000000..00a3d9a --- /dev/null +++ b/db/update20240410.sql @@ -0,0 +1,3 @@ +ALTER TABLE sys_dynamic_component ADD type INT(11) comment "0:分组,1:vue组件" AFTER compile_css; +ALTER TABLE sys_dynamic_component ADD remark text comment "备注" AFTER type; +update sys_dynamic_component set type = 0 where id in(select pid from sys_dynamic_component where is_del = 0) and is_del = 0