add unique user and host constraint to db
This commit is contained in:
parent
b5d9c45492
commit
4e1ad1b285
1 changed files with 2 additions and 1 deletions
|
|
@ -5,7 +5,8 @@ CREATE TABLE IF NOT EXISTS keys (
|
||||||
host_pattern TEXT NOT NULL,
|
host_pattern TEXT NOT NULL,
|
||||||
user_pattern TEXT NOT NULL,
|
user_pattern TEXT NOT NULL,
|
||||||
encrypted_pem BLOB NOT NULL,
|
encrypted_pem BLOB NOT NULL,
|
||||||
comment TEXT
|
comment TEXT,
|
||||||
|
UNIQUE (user_pattern, host_pattern)
|
||||||
);
|
);
|
||||||
-- +goose StatementEnd
|
-- +goose StatementEnd
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue