]> granicus.if.org Git - pdns/commitdiff
sqlite3 schema for bindbackend native dnssec
authorBert Hubert <bert.hubert@netherlabs.nl>
Sat, 3 Mar 2012 16:47:50 +0000 (16:47 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Sat, 3 Mar 2012 16:47:50 +0000 (16:47 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@2448 d19b8d6e-7fed-0310-83ef-9ca221ded41b

pdns/bind-dnssec.schema.sqlite3.sql [new file with mode: 0644]

diff --git a/pdns/bind-dnssec.schema.sqlite3.sql b/pdns/bind-dnssec.schema.sqlite3.sql
new file mode 100644 (file)
index 0000000..1fdff1d
--- /dev/null
@@ -0,0 +1,27 @@
+create table domainmetadata (
+ id             INTEGER PRIMARY KEY,
+ domain        VARCHAR(255) COLLATE NOCASE,
+ kind           VARCHAR(16) COLLATE NOCASE,
+ content       TEXT
+);
+
+create index domainmetanameindex on domainmetadata(domain);
+
+create table cryptokeys (
+ id            INTEGER PRIMARY KEY,
+ domain        VARCHAR(255) COLLATE NOCASE,
+ flags         INT NOT NULL,
+ active                BOOL,
+ content       TEXT
+);              
+
+create index domainnameindex on cryptokeys(domain);           
+
+create table tsigkeys (
+ id            INTEGER PRIMARY KEY,
+ name          VARCHAR(255) COLLATE NOCASE,
+ algorithm     VARCHAR(50) COLLATE NOCASE,
+ secret                VARCHAR(255)
+);
+
+create unique index namealgoindex on tsigkeys(name, algorithm);