diff --git a/migrations/00001_init.sql b/migrations/00001_init.sql index 0c61351..cbb222e 100644 --- a/migrations/00001_init.sql +++ b/migrations/00001_init.sql @@ -5,7 +5,8 @@ CREATE TABLE IF NOT EXISTS keys ( host_pattern TEXT NOT NULL, user_pattern TEXT NOT NULL, encrypted_pem BLOB NOT NULL, - comment TEXT + comment TEXT, + UNIQUE (user_pattern, host_pattern) ); -- +goose StatementEnd