|
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 | |
|---|
| 1 | alter table records add ordername VARCHAR(255); |
|---|
| 2 | alter table records add auth bool; |
|---|
| 3 | create index orderindex on records(ordername); |
|---|
| 4 | |
|---|
| 5 | create 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 | |
|---|
| 12 | create index domainidmetaindex on domainmetadata(domain_id); |
|---|
| 13 | |
|---|
| 14 | |
|---|
| 15 | create 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 | ); |
|---|
| 22 | create index domainidindex on cryptokeys(domain_id); |
|---|
| 23 | |
|---|
| 24 | |
|---|
| 25 | GRANT ALL ON domainmetadata TO pdns; |
|---|
| 26 | GRANT ALL ON domainmetadata_id_seq TO pdns; |
|---|
| 27 | GRANT ALL ON cryptokeys TO pdns; |
|---|
| 28 | GRANT ALL ON cryptokeys_id_seq TO pdns; |
|---|
| 29 | |
|---|
| 30 | create table tsigkeys ( |
|---|
| 31 | id SERIAL PRIMARY KEY, |
|---|
| 32 | name VARCHAR(255), |
|---|
| 33 | algorithm VARCHAR(255), |
|---|
| 34 | secret VARCHAR(255) |
|---|
| 35 | ); |
|---|
| 36 | |
|---|
| 37 | create unique index namealgoindex on tsigkeys(name, algorithm); |
|---|
| 38 | |
|---|
| 39 | GRANT ALL ON tsigkeys TO pdns; |
|---|
| 40 | GRANT ALL ON tsigkeys_id_seq TO pdns; |
|---|
| 41 | alter table records alter column type type VARCHAR(10); |
|---|