|
@@ -164,7 +164,7 @@ CREATE TABLE IF NOT EXISTS `dt_relation` (
|
|
|
`ts` timestamp default current_timestamp on update current_timestamp NOT NULL COMMENT '乐观锁',
|
|
|
PRIMARY KEY (`id`) USING BTREE,
|
|
|
KEY `idx_graph_code` (`graph_code`) USING BTREE,
|
|
|
- UNIQUE KEY `idx_1`(`graph_code`,`rel_code`,`obj_from`,`obj_to`,`rel_value`,`project_id`) USING BTREE,
|
|
|
+ UNIQUE KEY `idx_1`(`graph_code`,`rel_code`,`obj_from`,`obj_to`,`project_id`) USING BTREE,
|
|
|
KEY `idx_2` (`graph_id`,`rel_code`,`obj_from`,`obj_to`,`project_id`) USING BTREE,
|
|
|
KEY `idx_3` (`graph_code`,`rel_code`,`obj_to`,`project_id`) USING BTREE,
|
|
|
KEY `idx_4` (`graph_id`,`rel_code`,`obj_to`,`project_id`) USING BTREE,
|