You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

powerdns-dnssec-pgsql-db-structure.sql 959B

1234567891011121314151617181920212223242526272829303132333435
  1. alter table records add ordername VARCHAR(255);
  2. alter table records add auth bool;
  3. create index recordorder on records (domain_id, ordername text_pattern_ops);
  4. create table domainmetadata (
  5. id SERIAL PRIMARY KEY,
  6. domain_id INT REFERENCES domains(id) ON DELETE CASCADE,
  7. kind VARCHAR(16),
  8. content TEXT
  9. );
  10. create index domainidmetaindex on domainmetadata(domain_id);
  11. create table cryptokeys (
  12. id SERIAL PRIMARY KEY,
  13. domain_id INT REFERENCES domains(id) ON DELETE CASCADE,
  14. flags INT NOT NULL,
  15. active BOOL,
  16. content TEXT
  17. );
  18. create index domainidindex on cryptokeys(domain_id);
  19. create table tsigkeys (
  20. id SERIAL PRIMARY KEY,
  21. name VARCHAR(255),
  22. algorithm VARCHAR(50),
  23. secret VARCHAR(255),
  24. constraint c_lowercase_name check (((name)::text = lower((name)::text)))
  25. );
  26. create unique index namealgoindex on tsigkeys(name, algorithm);
  27. alter table records alter column type type VARCHAR(10);