Skip to content

Commit

Permalink
refactor: update upgrade.sql
Browse files Browse the repository at this point in the history
  • Loading branch information
710leo committed Mar 24, 2023
1 parent eef67c9 commit 76a94db
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cli/upgrade/upgrade.sql
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ alter table `alert_subscribe` add for_duration bigint not null default 0;

alter table `recording_rule` add datasource_ids varchar(255) default '';

alter table `target` modify cluster varchar(128) not null default '';

alter table `alert_cur_event` add datasource_id bigint unsigned not null default 0;
alter table `alert_cur_event` add annotations text not null comment 'annotations';
alter table `alert_cur_event` add rule_config text not null comment 'rule_config';
Expand All @@ -38,7 +40,7 @@ alter table `alert_his_event` add datasource_id bigint unsigned not null default
alter table `alert_his_event` add annotations text not null comment 'annotations';
alter table `alert_his_event` add rule_config text not null comment 'rule_config';

alter table alerting_engines add datasource_id bigint unsigned not null default 0;
alter table `alerting_engines` add datasource_id bigint unsigned not null default 0;

CREATE TABLE `datasource`
(
Expand Down

0 comments on commit 76a94db

Please sign in to comment.