fix index of metric_view and alert_aggr_view
This commit is contained in:
parent
c557e383b6
commit
d3576440d4
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue