diff options
author | Mark Haines <mark.haines@matrix.org> | 2014-10-15 17:09:04 +0100 |
---|---|---|
committer | Mark Haines <mark.haines@matrix.org> | 2014-10-15 17:09:04 +0100 |
commit | 1c445f88f64beabf0bd9bec3950a4a4c0d529e8a (patch) | |
tree | 12e777f2992d08645687fba8403ecf21c5c21dee /synapse/storage/schema/signatures.sql | |
parent | Merge branch 'develop' into event_signing (diff) | |
download | synapse-1c445f88f64beabf0bd9bec3950a4a4c0d529e8a.tar.xz |
persist hashes and origin signatures for PDUs
Diffstat (limited to 'synapse/storage/schema/signatures.sql')
-rw-r--r-- | synapse/storage/schema/signatures.sql | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/storage/schema/signatures.sql b/synapse/storage/schema/signatures.sql index ba3bbb5471..86ee0f2377 100644 --- a/synapse/storage/schema/signatures.sql +++ b/synapse/storage/schema/signatures.sql @@ -28,9 +28,9 @@ CREATE TABLE IF NOT EXISTS pdu_origin_signatures ( origin TEXT, key_id TEXT, signature BLOB, - CONSTRAINT uniqueness UNIQUE (pdu_id, origin, algorithm) + CONSTRAINT uniqueness UNIQUE (pdu_id, origin, key_id) ); CREATE INDEX IF NOT EXISTS pdu_origin_signatures_id ON pdu_origin_signatures ( - pdu_id, origin, + pdu_id, origin ); |