add initial migration

This commit is contained in:
juancwu 2026-01-11 16:43:40 -05:00
commit 67bd448dc5

15
migrations/00001_init.sql Normal file
View file

@ -0,0 +1,15 @@
-- +goose Up
-- +goose StatementBegin
CREATE TABLE IF NOT EXISTS keys (
id INTEGER PRIMARY KEY AUTOINCREMENT,
host_pattern TEXT NOT NULL,
user_pattern TEXT NOT NULL,
encrypted_pem BLOB NOT NULL,
comment TEXT
);
-- +goose StatementEnd
-- +goose Down
-- +goose StatementBegin
DROP TABLE IF EXISTS keys;
-- +goose StatementEnd