From 4dda68da9a792d4b0e4a455a3128b08cde9656ee Mon Sep 17 00:00:00 2001 From: Brendan Abolivier Date: Fri, 14 Jun 2019 10:37:12 +0100 Subject: Make index unique --- synapse/storage/profile.py | 1 + 1 file changed, 1 insertion(+) (limited to 'synapse/storage/profile.py') 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): -- cgit 1.5.1