From: Peter van Dijk Date: Wed, 17 Jul 2019 19:06:01 +0000 (+0200) Subject: use BIGINT for notified_serial in pg schema; fixes #6815 X-Git-Tag: dnsdist-1.4.0-rc1~23^2~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1953ba21c91a8569250f72a3de0efe57eabd7482;p=thirdparty%2Fpdns.git use BIGINT for notified_serial in pg schema; fixes #6815 --- diff --git a/modules/gpgsqlbackend/4.1.0_to_4.2.0_schema.pgsql.sql b/modules/gpgsqlbackend/4.1.0_to_4.2.0_schema.pgsql.sql index f91046250f..2333cf4535 100644 --- a/modules/gpgsqlbackend/4.1.0_to_4.2.0_schema.pgsql.sql +++ b/modules/gpgsqlbackend/4.1.0_to_4.2.0_schema.pgsql.sql @@ -1 +1,2 @@ ALTER TABLE records DROP COLUMN change_date; +ALTER TABLE domains ALTER notified_serial TYPE bigint USING CASE WHEN notified_serial >= 0 THEN notified_serial::bigint END; diff --git a/modules/gpgsqlbackend/schema.pgsql.sql b/modules/gpgsqlbackend/schema.pgsql.sql index e6c6b7c3bc..911dd373ec 100644 --- a/modules/gpgsqlbackend/schema.pgsql.sql +++ b/modules/gpgsqlbackend/schema.pgsql.sql @@ -4,7 +4,7 @@ CREATE TABLE domains ( master VARCHAR(128) DEFAULT NULL, last_check INT DEFAULT NULL, type VARCHAR(6) NOT NULL, - notified_serial INT DEFAULT NULL, + notified_serial BIGINT DEFAULT NULL, account VARCHAR(40) DEFAULT NULL, CONSTRAINT c_lowercase_name CHECK (((name)::TEXT = LOWER((name)::TEXT))) );