Browse Source

BREAKING chore(dbmaster,nsmaster): upgrade to pdns 4.8

This comes with a mandatory database migration on dbmaster,
https://github.com/PowerDNS/pdns/blob/rel/auth-4.8.x/modules/gpgsqlbackend/4.3.0_to_4.7.0_schema.pgsql.sql
Peter Thomassen 2 years ago
parent
commit
6f6c2834a8
2 changed files with 5 additions and 2 deletions
  1. 4 1
      dbmaster/docker-entrypoint-initdb.d/schema.pgsql.sql.txt
  2. 1 1
      nsmaster/Dockerfile

+ 4 - 1
dbmaster/docker-entrypoint-initdb.d/schema.pgsql.sql.txt

@@ -3,13 +3,16 @@ CREATE TABLE domains (
   name                  VARCHAR(255) NOT NULL,
   master                VARCHAR(128) DEFAULT NULL,
   last_check            INT DEFAULT NULL,
-  type                  VARCHAR(6) NOT NULL,
+  type                  TEXT NOT NULL,
   notified_serial       BIGINT DEFAULT NULL,
   account               VARCHAR(40) DEFAULT NULL,
+  options               TEXT DEFAULT NULL,
+  catalog               TEXT DEFAULT NULL,
   CONSTRAINT c_lowercase_name CHECK (((name)::TEXT = LOWER((name)::TEXT)))
 );
 
 CREATE UNIQUE INDEX name_index ON domains(name);
+CREATE INDEX catalog_idx ON domains(catalog);
 
 
 CREATE TABLE records (

+ 1 - 1
nsmaster/Dockerfile

@@ -7,7 +7,7 @@ RUN apt-get update && apt-get install -y \
 		dirmngr gnupg \
 	--no-install-recommends && apt-get clean && rm -rf /var/lib/apt/lists/*
 
-RUN echo 'deb [arch=amd64] http://repo.powerdns.com/ubuntu jammy-auth-46 main' \
+RUN echo 'deb [arch=amd64] http://repo.powerdns.com/ubuntu jammy-auth-48 main' \
       >> /etc/apt/sources.list \
  && echo 'Package: pdns-*' \
       > /etc/apt/preferences.d/pdns \