]> granicus.if.org Git - pdns/commitdiff
some helpful migration sql statements - still quite brief
authorBert Hubert <bert.hubert@netherlabs.nl>
Sat, 1 Jan 2011 21:25:20 +0000 (21:25 +0000)
committerBert Hubert <bert.hubert@netherlabs.nl>
Sat, 1 Jan 2011 21:25:20 +0000 (21:25 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@1786 d19b8d6e-7fed-0310-83ef-9ca221ded41b

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

diff --git a/pdns/dnssec.schema.mysql.sql b/pdns/dnssec.schema.mysql.sql
new file mode 100644 (file)
index 0000000..49d4aed
--- /dev/null
@@ -0,0 +1,21 @@
+create table domainmetadata (
+ id             INT auto_increment,
+ domain_id       INT NOT NULL,
+ kind           VARCHAR(15),
+ content       TEXT,
+ primary key(id)
+);
+
+create table cryptokeys (
+ id            INT auto_increment,
+ domain_id      INT DEFAULT NULL,
+ flags         INT NOT NULL,
+ active                BOOL,
+ content       TEXT,
+ primary key(id)
+);              
+
+alter table records add ordername      VARCHAR(255);
+alter table records add auth bool;
+create index orderindex on records(ordername);
+
diff --git a/pdns/dnssec.schema.sqlite3.sql b/pdns/dnssec.schema.sqlite3.sql
new file mode 100644 (file)
index 0000000..757f2f0
--- /dev/null
@@ -0,0 +1,15 @@
+create table domainmetadata (
+ id             INTEGER PRIMARY KEY,
+ domain_id       INT NOT NULL,
+ kind           VARCHAR(15),
+ content       TEXT
+);
+
+create table cryptokeys (
+ id            INTEGER PRIMARY KEY,
+ domain_id      INT DEFAULT NULL,
+ flags         INT NOT NULL,
+ active                BOOL,
+ content       TEXT
+);              
+