mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-25 19:15:51 +03:00
Rename unique constraint
This commit is contained in:
parent
b0f71db3ff
commit
9d36eb4eab
1 changed files with 1 additions and 1 deletions
|
@ -21,7 +21,7 @@ CREATE TABLE IF NOT EXISTS new_server_keys_json (
|
||||||
ts_added_ms BIGINT NOT NULL, -- When the keys were fetched
|
ts_added_ms BIGINT NOT NULL, -- When the keys were fetched
|
||||||
ts_valid_until_ms BIGINT NOT NULL, -- When this version of the keys exipires.
|
ts_valid_until_ms BIGINT NOT NULL, -- When this version of the keys exipires.
|
||||||
key_json bytea NOT NULL, -- JSON certificate for the remote server.
|
key_json bytea NOT NULL, -- JSON certificate for the remote server.
|
||||||
CONSTRAINT uniqueness UNIQUE (server_name, key_id, from_server)
|
CONSTRAINT server_keys_json_uniqueness UNIQUE (server_name, key_id, from_server)
|
||||||
);
|
);
|
||||||
|
|
||||||
INSERT INTO new_server_keys_json
|
INSERT INTO new_server_keys_json
|
||||||
|
|
Loading…
Reference in a new issue