add migrations to support type AAAA
This commit is contained in:
parent
191c6dbdb1
commit
9525f997da
2 changed files with 53 additions and 0 deletions
20
migrations/00001_init.sql
Normal file
20
migrations/00001_init.sql
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
-- +goose Up
|
||||
-- +goose StatementBegin
|
||||
CREATE TABLE IF NOT EXISTS records (
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
domain TEXT NOT NULL UNIQUE,
|
||||
ip TEXT NOT NULL,
|
||||
record_type TEXT DEFAULT 'A'
|
||||
);
|
||||
|
||||
CREATE TABLE IF NOT EXISTS upstreams (
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
address TEXT NOT NULL UNIQUE
|
||||
);
|
||||
-- +goose StatementEnd
|
||||
|
||||
-- +goose Down
|
||||
-- +goose StatementBegin
|
||||
DROP TABLE IF EXISTS records;
|
||||
DROP TABLE IF EXISTS upstreams;
|
||||
-- +goose StatementEnd
|
||||
Loading…
Add table
Add a link
Reference in a new issue