Bläddra i källkod

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

liyang 3 år sedan
förälder
incheckning
ad3df3ba7b
1 ändrade filer med 2 tillägg och 1 borttagningar
  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='系统图表结构';