From: Kees Monshouwer Date: Tue, 28 Nov 2017 22:44:02 +0000 (+0100) Subject: gmysql-backend: set unsigned attribute on notified_serial column X-Git-Tag: dnsdist-1.3.0~153^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bd441912863b91ce0f32c8d3eac4e5ff9745e135;p=pdns gmysql-backend: set unsigned attribute on notified_serial column --- diff --git a/build-scripts/build-auth-rpm b/build-scripts/build-auth-rpm index a02575c24..62adc374c 100755 --- a/build-scripts/build-auth-rpm +++ b/build-scripts/build-auth-rpm @@ -471,6 +471,7 @@ fi %doc %{_defaultdocdir}/%{name}/nodnssec-3.x_to_3.4.0_schema.mysql.sql %doc %{_defaultdocdir}/%{name}/dnssec-3.x_to_3.4.0_schema.mysql.sql %doc %{_defaultdocdir}/%{name}/3.4.0_to_4.1.0_schema.mysql.sql +%doc %{_defaultdocdir}/%{name}/4.1.0_to_4.1.1_schema.mysql.sql %{_libdir}/%{name}/libgmysqlbackend.so %files backend-postgresql diff --git a/modules/gmysqlbackend/4.1.0_to_4.1.1_schema.mysql.sql b/modules/gmysqlbackend/4.1.0_to_4.1.1_schema.mysql.sql new file mode 100644 index 000000000..6745c636b --- /dev/null +++ b/modules/gmysqlbackend/4.1.0_to_4.1.1_schema.mysql.sql @@ -0,0 +1 @@ +ALTER TABLE domains MODIFY notified_serial INT UNSIGNED DEFAULT NULL; diff --git a/modules/gmysqlbackend/Makefile.am b/modules/gmysqlbackend/Makefile.am index 43c09c904..aea6142cd 100644 --- a/modules/gmysqlbackend/Makefile.am +++ b/modules/gmysqlbackend/Makefile.am @@ -13,6 +13,7 @@ dist_doc_DATA = \ dnssec-3.x_to_3.4.0_schema.mysql.sql \ nodnssec-3.x_to_3.4.0_schema.mysql.sql \ 3.4.0_to_4.1.0_schema.mysql.sql \ + 4.1.0_to_4.1.1_schema.mysql.sql \ schema.mysql.sql libgmysqlbackend_la_SOURCES = \ diff --git a/modules/gmysqlbackend/schema.mysql.sql b/modules/gmysqlbackend/schema.mysql.sql index bf15329b9..1c6eee5a5 100644 --- a/modules/gmysqlbackend/schema.mysql.sql +++ b/modules/gmysqlbackend/schema.mysql.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 INT UNSIGNED DEFAULT NULL, account VARCHAR(40) CHARACTER SET 'utf8' DEFAULT NULL, PRIMARY KEY (id) ) Engine=InnoDB CHARACTER SET 'latin1';