diff options
author | Brendan Abolivier <babolivier@matrix.org> | 2019-06-14 10:37:12 +0100 |
---|---|---|
committer | Brendan Abolivier <babolivier@matrix.org> | 2019-06-14 10:37:12 +0100 |
commit | 4dda68da9a792d4b0e4a455a3128b08cde9656ee (patch) | |
tree | 04c6ab5f940ca000f31d8f894972aae6167476dc | |
parent | Merge pull request #5416 from matrix-org/babolivier/fix_profile_replication (diff) | |
download | synapse-4dda68da9a792d4b0e4a455a3128b08cde9656ee.tar.xz |
Make index unique
-rw-r--r-- | synapse/storage/profile.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/synapse/storage/profile.py b/synapse/storage/profile.py index f60263502b..38524f2545 100644 --- a/synapse/storage/profile.py +++ b/synapse/storage/profile.py @@ -176,6 +176,7 @@ class ProfileStore(ProfileWorkerStore, background_updates.BackgroundUpdateStore) index_name="profile_replication_status_idx", table="profile_replication_status", columns=["host"], + unique=True, ) def add_remote_profile_cache(self, user_id, displayname, avatar_url): |