root/trunk/pdns/pdns/dnssec.schema.pgsql.sql @ 2110

Revision 2110, 1.0 KB (checked in by ahu, 2 years ago)

Jan-Piet Mens discovered that SOA-EDIT was not listed in the domain metadata documentation. He also found that the domain metadata schema did not have room enough to store AXFR-MASTER-TSIG.

Line 
1alter table records add ordername       VARCHAR(255);
2alter table records add auth bool;
3create index orderindex on records(ordername);
4
5create table domainmetadata (
6 id             SERIAL PRIMARY KEY,
7 domain_id      INT REFERENCES domains(id) ON DELETE CASCADE,
8 kind           VARCHAR(16),
9 content        TEXT
10);
11
12create index domainidmetaindex on domainmetadata(domain_id);               
13
14
15create table cryptokeys (
16 id             SERIAL PRIMARY KEY,
17 domain_id      INT REFERENCES domains(id) ON DELETE CASCADE,
18 flags          INT NOT NULL,
19 active         BOOL,
20 content        TEXT
21);               
22create index domainidindex on cryptokeys(domain_id);
23
24
25GRANT ALL ON domainmetadata TO pdns;
26GRANT ALL ON domainmetadata_id_seq TO pdns;
27GRANT ALL ON cryptokeys TO pdns;
28GRANT ALL ON cryptokeys_id_seq TO pdns;
29
30create table tsigkeys (
31 id             SERIAL PRIMARY KEY,
32 name           VARCHAR(255),
33 algorithm      VARCHAR(255), 
34 secret         VARCHAR(255)
35);
36
37create unique index namealgoindex on tsigkeys(name, algorithm);
38
39GRANT ALL ON tsigkeys TO pdns;
40GRANT ALL ON tsigkeys_id_seq TO pdns;
41alter table records alter column type type VARCHAR(10);
Note: See TracBrowser for help on using the browser.