瀏覽代碼

feat(adm-diagram): schema.sql 增加组合索引

liyang 3 年之前
父節點
當前提交
ad3df3ba7b
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      adm-business/adm-diagram/src/main/resources/db.init/schema.sql

+ 2 - 1
adm-business/adm-diagram/src/main/resources/db.init/schema.sql

@@ -73,5 +73,6 @@ CREATE TABLE IF NOT EXISTS `diagram` (
   `ts` timestamp default current_timestamp on update current_timestamp NOT NULL COMMENT '乐观锁',
   PRIMARY KEY (`id`) USING BTREE,
   KEY `idx_type_project_id_system_id` (`type`,`project_id`,`system_id`) USING BTREE,
-  KEY `idx_project_id_system_id` (`project_id`,`system_id`) USING BTREE
+  KEY `idx_project_id_system_id` (`project_id`,`system_id`) USING BTREE,
+  KEY `idx_project_id_group_code` (`project_id`,`group_code`) USING BTREE
 ) ENGINE=InnoDB ROW_FORMAT=DYNAMIC COMMENT='系统图表结构';