Skip to content

Commit

Permalink
fix index of metric_view and alert_aggr_view
Browse files Browse the repository at this point in the history
  • Loading branch information
UlricQin committed Mar 28, 2022
1 parent c557e38 commit d357644
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docker/initsql/a-n9e.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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` (
Expand All @@ -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);
Expand Down

0 comments on commit d357644

Please sign in to comment.