]> git.ipfire.org Git - dbl.git/commitdiff
db: Make "notified_serial" writable
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 6 Dec 2025 17:48:56 +0000 (17:48 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 6 Dec 2025 17:48:56 +0000 (17:48 +0000)
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 <michael.tremer@ipfire.org>
src/database.sql

index 9f5187ff9191852c34e1c6af2d4df0d773cfcdba..456d703c0fd3bebd33739c47b60b4e5bf3bc572b 100644 (file)
@@ -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