Commit 65626c7a authored by Hugo Hörnquist's avatar Hugo Hörnquist
Browse files

Add ON DELETE CASCADE to fk_subdomain_domid.

parent 40174f42
......@@ -48,7 +48,8 @@ CREATE TABLE subdomain
deletebit bool NOT NULL DEFAULT 0,
CONSTRAINT pk_subdomain_id PRIMARY KEY (id),
CONSTRAINT fk_subdomain_domid FOREIGN KEY (domainid) REFERENCES domain(id),
CONSTRAINT fk_subdomain_domid FOREIGN KEY (domainid) REFERENCES domain(id)
ON DELETE CASCADE,
CONSTRAINT fk_subdomain_rr FOREIGN KEY (rr) REFERENCES record_types (id),
CONSTRAINT uc_subdomain_name_domainid UNIQUE (name, domainid),
INDEX idx_subdomain_dirtybit (dirtybit),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment