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

fixed problems with last commit

parent 6ddeded2
delimiter //
DROP TABLE IF EXISTS subdomain;//
DROP TABLE IF EXISTS update_key;//
DROP TABLE IF EXISTS subdomain;//
DROP TABLE IF EXISTS record_types;//
DROP TABLE IF EXISTS domain;//
......@@ -27,8 +27,8 @@ CREATE TABLE domain
CONSTRAINT pk_domain_id PRIMARY KEY (id),
CONSTRAINT uc_domain_name UNIQUE (name),
INDEX idx_domain_dirtybit dirtybit,
INDEX idx_domain_deletebit deletebit
INDEX idx_domain_dirtybit (dirtybit),
INDEX idx_domain_deletebit (deletebit)
)ENGINE=InnoDB;//
......@@ -50,8 +50,8 @@ CREATE TABLE subdomain
CONSTRAINT fk_subdomain_domid FOREIGN KEY (domainid) REFERENCES domain(id),
CONSTRAINT fk_subdomain_rr FOREIGN KEY (rr) REFERENCES record_types (id),
CONSTRAINT uc_subdomain_name_domainid UNIQUE (name, domainid),
INDEX idx_subdomain_dirtybit dirtybit,
INDEX idx_subdomain_deletebit deletebit
INDEX idx_subdomain_dirtybit (dirtybit),
INDEX idx_subdomain_deletebit (deletebit)
)ENGINE=InnoDB;//
......
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