]> granicus.if.org Git - pdns/commitdiff
Jose Arthur Benetasso Villanova contributed the postgresql schema update for dnssec
authorBert Hubert <bert.hubert@netherlabs.nl>
Tue, 18 Jan 2011 19:01:21 +0000 (19:01 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Tue, 18 Jan 2011 19:01:21 +0000 (19:01 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@1895 d19b8d6e-7fed-0310-83ef-9ca221ded41b

pdns/dnssec.schema.pgsql.sql [new file with mode: 0644]

diff --git a/pdns/dnssec.schema.pgsql.sql b/pdns/dnssec.schema.pgsql.sql
new file mode 100644 (file)
index 0000000..9034175
--- /dev/null
@@ -0,0 +1,24 @@
+alter table records add ordername      VARCHAR(255);
+alter table records add auth bool;
+create index orderindex on records(ordername);
+
+create table domainmetadata (
+ id            SERIAL PRIMARY KEY,
+ domain_id     INT REFERENCES domains(id) ON DELETE CASCADE,
+ kind          VARCHAR(15),
+ content       TEXT
+);
+
+create table cryptokeys (
+ id            SERIAL PRIMARY KEY,
+ domain_id     INT REFERENCES domains(id) ON DELETE CASCADE,
+ flags         INT NOT NULL,
+ active                BOOL,
+ content       TEXT
+);              
+
+GRANT ALL ON domainmetadata TO pdns;
+GRANT ALL ON domainmetadata_id_seq TO pdns;
+GRANT ALL ON cryptokeys TO pdns;
+GRANT ALL ON cryptokeys_id_seq TO pdns;
+