summary refs log tree commit diff
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2016-06-17 19:20:47 +0100
committerMark Haines <mark.haines@matrix.org>2016-06-17 19:20:47 +0100
commit41e4b2efeafa6e2f4cbfef4f30620b9f58b020a4 (patch)
tree95d3dceb57e2edf136192ad32f7a7ccadbdbbeb1
parentAdd a comment on why we don't create a profile for upgrading users (diff)
downloadsynapse-41e4b2efeafa6e2f4cbfef4f30620b9f58b020a4.tar.xz
Add the create_profile method back since the tests use it
Diffstat (limited to '')
-rw-r--r--synapse/storage/profile.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/synapse/storage/profile.py b/synapse/storage/profile.py
index c3c3f9ffd8..26a40905ae 100644
--- a/synapse/storage/profile.py
+++ b/synapse/storage/profile.py
@@ -17,6 +17,12 @@ from ._base import SQLBaseStore
 
 
 class ProfileStore(SQLBaseStore):
+    def create_profile(self, user_localpart):
+        return self._simple_insert(
+            table="profiles",
+            values={"user_id": user_localpart},
+            desc="create_profile",
+        )
 
     def get_profile_displayname(self, user_localpart):
         return self._simple_select_one_onecol(