Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
lysns
lysns
Commits
ed9a4f00
Commit
ed9a4f00
authored
Mar 01, 2018
by
Hugo Hörnquist
Browse files
sql work
parent
bf054b5f
Changes
1
Show whitespace changes
Inline
Side-by-side
src/backend/domaindb.sql
View file @
ed9a4f00
...
@@ -32,10 +32,11 @@ create table subdomain
...
@@ -32,10 +32,11 @@ create table subdomain
(
(
id
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
id
int
(
11
)
NOT
NULL
AUTO_INCREMENT
,
name
varchar
(
255
),
name
varchar
(
255
),
ttl
int
(
11
),
ttl
int
(
11
)
DEFAULT
86400
NOT
NULL
,
class
varchar
(
255
),
class
varchar
(
255
)
default
"IN"
NOT
NULL
,
rr
varchar
(
255
),
-- rr varchar(255) default "A" NOT NULL,
destination
varchar
(
255
),
rr
int
(
11
)
NOT
NULL
,
destination
varchar
(
255
),
-- only for cname
domainid
int
(
11
),
domainid
int
(
11
),
CONSTRAINT
pk_subdomain_id
PRIMARY
KEY
(
id
),
CONSTRAINT
pk_subdomain_id
PRIMARY
KEY
(
id
),
...
@@ -69,4 +70,4 @@ CREATE TABLE record_types
...
@@ -69,4 +70,4 @@ CREATE TABLE record_types
-- Insert intial values.
-- Insert intial values.
-- Should probably be moved somewhere else
-- Should probably be moved somewhere else
INSERT
INTO
record_types
(
name
)
VALUES
(
"A"
),
(
"AAAA"
);
--
INSERT INTO record_types (name) VALUES ("A"), ("AAAA");
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment