add initial migration
This commit is contained in:
parent
dcf8c9eba0
commit
67bd448dc5
1 changed files with 15 additions and 0 deletions
15
migrations/00001_init.sql
Normal file
15
migrations/00001_init.sql
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue