From 745850936dbf3072e74df79d605d2024a96ee655 Mon Sep 17 00:00:00 2001 From: wangliwen Date: Fri, 1 Jul 2022 13:36:54 +0800 Subject: [PATCH] ... --- config/db/V2.3__addindex.sql | 14 -------------- config/db/V2.6__ability_application_add_col.sql | 2 +- config/db/V2.7__t_ability_application_add_col.sql | 2 +- config/db/V2.8__tb_resource_car_update_note1.sql | 1 + .../db/V2.9__t_ability_application_update_col.sql | 2 ++ 5 files changed, 5 insertions(+), 16 deletions(-) create mode 100644 config/db/V2.8__tb_resource_car_update_note1.sql create mode 100644 config/db/V2.9__t_ability_application_update_col.sql diff --git a/config/db/V2.3__addindex.sql b/config/db/V2.3__addindex.sql index cefbd950..a4f60ae7 100644 --- a/config/db/V2.3__addindex.sql +++ b/config/db/V2.3__addindex.sql @@ -1,17 +1,3 @@ --- 删除索引 -alter table `tb_resource_collection` drop index `resourceid`; -alter table `tb_resource_car` drop index `resourceid`; -alter table `tb_resource_score` drop index `resourceid`; -alter table `tb_resource_browse` drop index `resourceid`; -alter table `t_ability_application` drop index `resourceid`; -alter table `t_ability_application` drop index `userId`; -alter table `tb_data_resource` drop index `type`; -alter table `tb_data_attr` drop index `attr_value`; -alter table `tb_data_resource` drop index `name`; -alter table `tb_data_resource` drop index `deptId`; -alter table `sys_dept` drop index `type`; -alter table `sys_dept` drop index `district`; -alter table `tb_resource_collection` drop index `userId`; -- 创建索引 alter table `tb_resource_collection` ADD INDEX `resourceid`(`resource_id`) USING BTREE comment '收藏的资源id'; alter table `tb_resource_car` ADD INDEX `resourceid`(`resource_id`) USING BTREE comment '加入申购车的id'; diff --git a/config/db/V2.6__ability_application_add_col.sql b/config/db/V2.6__ability_application_add_col.sql index 5ff95ae4..fa25bb31 100644 --- a/config/db/V2.6__ability_application_add_col.sql +++ b/config/db/V2.6__ability_application_add_col.sql @@ -1 +1 @@ -ALTER TABLE t_ability_application ADD COLUMN `cameraList` json NULL COMMENT '摄像头ID数组'; \ No newline at end of file +ALTER TABLE t_ability_application ADD COLUMN `camera_list` json NULL COMMENT '摄像头ID数组'; \ No newline at end of file diff --git a/config/db/V2.7__t_ability_application_add_col.sql b/config/db/V2.7__t_ability_application_add_col.sql index cc7b5c30..8990f71e 100644 --- a/config/db/V2.7__t_ability_application_add_col.sql +++ b/config/db/V2.7__t_ability_application_add_col.sql @@ -1,5 +1,5 @@ alter table `t_ability_application` -ADD COLUMN `title` longtext NULL comment '能力申请标题' AFTER `cameraList`, +ADD COLUMN `title` longtext NULL comment '能力申请标题', ADD COLUMN `application_system` varchar(255) NULL comment '应用系统' AFTER `title`, ADD COLUMN `application_scene` varchar(255) NULL comment '应用场景' AFTER `application_system`, ADD COLUMN `application_background` longtext NULL comment '应用背景' AFTER `application_scene`, diff --git a/config/db/V2.8__tb_resource_car_update_note1.sql b/config/db/V2.8__tb_resource_car_update_note1.sql new file mode 100644 index 00000000..bdbb1192 --- /dev/null +++ b/config/db/V2.8__tb_resource_car_update_note1.sql @@ -0,0 +1 @@ +ALTER TABLE tb_resource_car MODIFY COLUMN `note1` json NULL COMMENT '摄像头ID列表'; \ No newline at end of file diff --git a/config/db/V2.9__t_ability_application_update_col.sql b/config/db/V2.9__t_ability_application_update_col.sql new file mode 100644 index 00000000..59b5dd00 --- /dev/null +++ b/config/db/V2.9__t_ability_application_update_col.sql @@ -0,0 +1,2 @@ +alter table `t_ability_application` +MODIFY COLUMN `application_scene` json NULL comment '应用场景'; \ No newline at end of file