diff --git a/migrations/00001_init.sql b/migrations/00001_init.sql new file mode 100644 index 0000000..0c61351 --- /dev/null +++ b/migrations/00001_init.sql @@ -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