From 60c842c7041e5e591d3e26ae9bf0b51a031b4582 Mon Sep 17 00:00:00 2001 From: xtan <38320121+tanxiao1990@users.noreply.github.com> Date: Mon, 13 Jun 2022 10:56:14 +0800 Subject: [PATCH] fix: NotifyMaxNumber for postgres db (#978) * fix: NotifyMaxNumber for postgres db * fix: sql for pg Co-authored-by: tanxiao --- docker/initsql_for_postgres/a-n9e-for-Postgres.sql | 1 + 1 file changed, 1 insertion(+) diff --git a/docker/initsql_for_postgres/a-n9e-for-Postgres.sql b/docker/initsql_for_postgres/a-n9e-for-Postgres.sql index 1ab27e6d..a643029d 100644 --- a/docker/initsql_for_postgres/a-n9e-for-Postgres.sql +++ b/docker/initsql_for_postgres/a-n9e-for-Postgres.sql @@ -246,6 +246,7 @@ CREATE TABLE alert_rule ( notify_channels varchar(255) NOT NULL DEFAULT ''::character varying, notify_groups varchar(255) NOT NULL DEFAULT ''::character varying, notify_repeat_step int4 NOT NULL DEFAULT 0, + notify_max_number int4 not null default 0, recover_duration int4 NOT NULL DEFAULT 0, callbacks varchar(255) NOT NULL DEFAULT ''::character varying, runbook_url varchar(255) NULL,