From: Michael Tremer Date: Sat, 6 Dec 2025 17:48:56 +0000 (+0000) Subject: db: Make "notified_serial" writable X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e718369cf7672cea99149cf16f01e9dfe000dbe;p=dbl.git db: Make "notified_serial" writable That way, we can run PowerDNS in master mode and it will notify any slaves if there are any changes. Signed-off-by: Michael Tremer --- diff --git a/src/database.sql b/src/database.sql index 9f5187f..456d703 100644 --- a/src/database.sql +++ b/src/database.sql @@ -2,7 +2,7 @@ -- PostgreSQL database dump -- -\restrict NxEQDx40FVUj24Yh17lfOezDsbkLvSv38dKz7i0xbU8aXJyGBUjndSNsiRZzoEO +\restrict Hgrgkkv0Kli7xhxP2HE1nFG6rz88vUvOwvbaYg6QJtncfM25K73VfmB9qT65atW -- Dumped from database version 17.6 (Debian 17.6-0+deb13u1) -- Dumped by pg_dump version 17.6 (Debian 17.6-0+deb13u1) @@ -62,7 +62,8 @@ CREATE TABLE public.lists ( deleted_at timestamp with time zone, deleted_by text, license text NOT NULL, - updated_at timestamp with time zone + updated_at timestamp with time zone, + notified_serial integer ); @@ -76,7 +77,7 @@ CREATE VIEW public.domains AS ''::text AS master, 0 AS last_check, 'MASTER'::text AS type, - 0 AS notified_serial, + notified_serial, ''::text AS account, ''::text AS options, ''::text AS catalog @@ -364,5 +365,5 @@ ALTER TABLE ONLY public.sources -- PostgreSQL database dump complete -- -\unrestrict NxEQDx40FVUj24Yh17lfOezDsbkLvSv38dKz7i0xbU8aXJyGBUjndSNsiRZzoEO +\unrestrict Hgrgkkv0Kli7xhxP2HE1nFG6rz88vUvOwvbaYg6QJtncfM25K73VfmB9qT65atW