add migrations to support type AAAA

This commit is contained in:
jc 2025-12-31 11:28:47 -05:00
commit 9525f997da
2 changed files with 53 additions and 0 deletions

20
migrations/00001_init.sql Normal file
View 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