summary refs log tree commit diff
path: root/synapse
diff options
context:
space:
mode:
authorBrendan Abolivier <babolivier@matrix.org>2019-06-14 10:37:43 +0100
committerBrendan Abolivier <babolivier@matrix.org>2019-06-14 10:37:43 +0100
commitc4759cd041f664b6c0fae4949732f87d97c4e868 (patch)
tree37462c4a86c6ff2961493844c6c5ff2618d36bf1 /synapse
parentMerge branch 'babolivier/fix_profile_replication' into babolivier/userdir_hid... (diff)
parentMake index unique (diff)
downloadsynapse-c4759cd041f664b6c0fae4949732f87d97c4e868.tar.xz
Merge branch 'dinsic' into babolivier/userdir_hide_users
Diffstat (limited to 'synapse')
-rw-r--r--synapse/storage/profile.py1
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):