Commit cc8946d4 authored by Hugo Hörnquist's avatar Hugo Hörnquist Committed by Andreas Kempe
Browse files

sql work

parent 6e45d146
......@@ -9,7 +9,7 @@ DROP TABLE IF EXISTS record_types;//
create table person
(
id int(11) NOT NULL AUTO_INCREMENT,
id int(11) NOT NULL AUTO_INCREMENT,
name varchar(255),
username varchar(255),
......@@ -32,10 +32,11 @@ create table subdomain
(
id int(11) NOT NULL AUTO_INCREMENT,
name varchar(255),
ttl int(11),
class varchar(255),
rr varchar(255),
destination varchar(255),
ttl int(11) DEFAULT 86400 NOT NULL,
class varchar(255) default "IN" NOT NULL,
-- rr varchar(255) default "A" NOT NULL,
rr int(11) NOT NULL,
destination varchar(255), -- only for cname
domainid int(11),
CONSTRAINT pk_subdomain_id PRIMARY KEY (id),
......@@ -69,4 +70,4 @@ CREATE TABLE record_types
-- Insert intial values.
-- Should probably be moved somewhere else
INSERT INTO record_types (name) VALUES ("A"), ("AAAA");
-- INSERT INTO record_types (name) VALUES ("A"), ("AAAA");
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