From d3576440d464fd01831558d8560a1923fe17f111 Mon Sep 17 00:00:00 2001 From: Ulric Qin Date: Mon, 28 Mar 2022 10:15:53 +0800 Subject: [PATCH] fix index of metric_view and alert_aggr_view --- docker/initsql/a-n9e.sql | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker/initsql/a-n9e.sql b/docker/initsql/a-n9e.sql index ced8e0291..891e25775 100644 --- a/docker/initsql/a-n9e.sql +++ b/docker/initsql/a-n9e.sql @@ -305,7 +305,7 @@ CREATE TABLE `metric_view` ( `create_by` bigint not null default 0 comment 'user id', `update_at` bigint not null default 0, PRIMARY KEY (`id`), - KEY (`user_id`) + KEY (`create_by`) ) ENGINE=InnoDB DEFAULT CHARSET = utf8mb4; CREATE TABLE `alert_aggr_view` ( @@ -317,7 +317,7 @@ CREATE TABLE `alert_aggr_view` ( `create_by` bigint not null default 0 comment 'user id', `update_at` bigint not null default 0, PRIMARY KEY (`id`), - KEY (`user_id`) + KEY (`create_by`) ) ENGINE=InnoDB DEFAULT CHARSET = utf8mb4; insert into alert_aggr_view(name, rule, cate) values('GroupBy BusiGroup, Severity', 'field:group_name::field:severity', 0);