Make index unique

This commit is contained in:
Brendan Abolivier 2019-06-14 10:37:12 +01:00
parent a6cf1e079e
commit 4dda68da9a
No known key found for this signature in database
GPG Key ID: 1E015C145F1916CD

View File

@ -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):