更新数据库

This commit is contained in:
zegezy 2024-04-10 21:16:45 +08:00
parent 8b8993ef7a
commit 663ae670cb
2 changed files with 5 additions and 0 deletions

View File

@ -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分组1vue组件',
`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 '创建时间',

3
db/update20240410.sql Normal file
View File

@ -0,0 +1,3 @@
ALTER TABLE sys_dynamic_component ADD type INT(11) comment "0分组1vue组件" 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