Skip to content

Commit

Permalink
docs: fix pg init sql (ccfos#1154)
Browse files Browse the repository at this point in the history
Co-authored-by: tanxiao <[email protected]>
  • Loading branch information
tanxiao1990 and tanxiao authored Sep 15, 2022
1 parent 98f3508 commit 7209da1
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docker/initsql_for_postgres/a-n9e-for-Postgres.sql
Original file line number Diff line number Diff line change
Expand Up @@ -321,13 +321,17 @@ CREATE TABLE alert_mute (
group_id bigint not null default 0 ,
cate varchar(128) not null default '' ,
prod varchar(255) NOT NULL DEFAULT '' ,
note varchar(1024) not null default '',
cluster varchar(128) not null,
tags varchar(4096) not null default '' ,
cause varchar(255) not null default '',
btime bigint not null default 0 ,
etime bigint not null default 0 ,
disabled smallint not null default 0 ,
create_at bigint not null default 0,
create_by varchar(64) not null default ''
create_by varchar(64) not null default '',
update_at bigint not null default 0,
update_by varchar(64) not null default ''
) ;
ALTER TABLE alert_mute ADD CONSTRAINT alert_mute_pk PRIMARY KEY (id);
CREATE INDEX alert_mute_create_at_idx ON alert_mute (create_at);
Expand All @@ -336,6 +340,7 @@ COMMENT ON COLUMN alert_mute.group_id IS 'busi group id';
COMMENT ON COLUMN alert_mute.tags IS 'json,map,tagkey->regexp|value';
COMMENT ON COLUMN alert_mute.btime IS 'begin time';
COMMENT ON COLUMN alert_mute.etime IS 'end time';
COMMENT ON COLUMN alert_mute.disabled IS '0:enabled 1:disabled';

CREATE TABLE alert_subscribe (
id bigserial,
Expand Down

0 comments on commit 7209da1

Please sign in to comment.