CREATE DATABASE pdns WITH ENCODING 'UTF8' LC_COLLATE 'en_US.UTF-8' LC_CTYPE 'en_US.UTF-8';
CREATE DATABASE pdnsadm WITH ENCODING 'UTF8' LC_COLLATE 'en_US.UTF-8' LC_CTYPE 'en_US.UTF-8';
-CREATE DATABASE pdns_local WITH ENCODING 'UTF8' LC_COLLATE 'en_US.UTF-8' LC_CTYPE 'en_US.UTF-8';
-CREATE DATABASE pdns_public WITH ENCODING 'UTF8' LC_COLLATE 'en_US.UTF-8' LC_CTYPE 'en_US.UTF-8';
-
BEGIN WORK;
CREATE ROLE dns
ALTER DATABASE pdnsadm OWNER TO pdnsadm;
CREATE USER pdns_local WITH PASSWORD 'Neingeichee(ghahn7ah';
-COMMENT ON ROLE pdns IS 'User for local PowerDNS';
+COMMENT ON ROLE pdns_local IS 'User for local PowerDNS';
GRANT dns TO pdns_local;
-GRANT ALL ON DATABASE "pdns_local" TO pdns_local;
-ALTER DATABASE pdns_local OWNER TO pdns_local;
CREATE USER pdns_public WITH PASSWORD 'ahr7die3gee]s4vahCoh';
-COMMENT ON ROLE pdns IS 'User for public PowerDNS';
+COMMENT ON ROLE pdns_public IS 'User for public PowerDNS';
GRANT dns TO pdns_public;
-GRANT ALL ON DATABASE "pdns_public" TO pdns_public;
-ALTER DATABASE pdns_public OWNER TO pdns_public;
COMMIT;