diff --git a/sql/init-2-schema-tables.sql b/sql/init-2-schema-tables.sql index 883644a2..d447f246 100644 --- a/sql/init-2-schema-tables.sql +++ b/sql/init-2-schema-tables.sql @@ -428,7 +428,7 @@ CREATE TABLE `host` `updater` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NULL DEFAULT NULL COMMENT '更新人', `deleted` tinyint(1) NULL DEFAULT 0 COMMENT '是否删除 0未删除 1已删除', PRIMARY KEY (`id`) USING BTREE, - INDEX `idx_type` (`type`) USING BTREE + INDEX `idx_type_address` (`type`, `address`) USING BTREE ) ENGINE = InnoDB AUTO_INCREMENT = 1 CHARACTER SET = utf8mb4