docs: fix pg init sql (#1154)

Co-authored-by: tanxiao <tanxiao@asiainfo.com>
This commit is contained in:
xtan 2022-09-15 18:28:09 +08:00 committed by GitHub
parent 98f3508424
commit 7209da192f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -321,13 +321,17 @@ CREATE TABLE alert_mute (
group_id bigint not null default 0 , group_id bigint not null default 0 ,
cate varchar(128) not null default '' , cate varchar(128) not null default '' ,
prod varchar(255) NOT NULL DEFAULT '' , prod varchar(255) NOT NULL DEFAULT '' ,
note varchar(1024) not null default '',
cluster varchar(128) not null, cluster varchar(128) not null,
tags varchar(4096) not null default '' , tags varchar(4096) not null default '' ,
cause varchar(255) not null default '', cause varchar(255) not null default '',
btime bigint not null default 0 , btime bigint not null default 0 ,
etime 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_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); ALTER TABLE alert_mute ADD CONSTRAINT alert_mute_pk PRIMARY KEY (id);
CREATE INDEX alert_mute_create_at_idx ON alert_mute (create_at); CREATE INDEX alert_mute_create_at_idx ON alert_mute (create_at);
@ -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.tags IS 'json,map,tagkey->regexp|value';
COMMENT ON COLUMN alert_mute.btime IS 'begin time'; COMMENT ON COLUMN alert_mute.btime IS 'begin time';
COMMENT ON COLUMN alert_mute.etime IS 'end 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 ( CREATE TABLE alert_subscribe (
id bigserial, id bigserial,