diff options
author | Mark Haines <mark.haines@matrix.org> | 2016-06-17 19:20:47 +0100 |
---|---|---|
committer | Mark Haines <mark.haines@matrix.org> | 2016-06-17 19:20:47 +0100 |
commit | 41e4b2efeafa6e2f4cbfef4f30620b9f58b020a4 (patch) | |
tree | 95d3dceb57e2edf136192ad32f7a7ccadbdbbeb1 /synapse/storage | |
parent | Add a comment on why we don't create a profile for upgrading users (diff) | |
download | synapse-41e4b2efeafa6e2f4cbfef4f30620b9f58b020a4.tar.xz |
Add the create_profile method back since the tests use it
Diffstat (limited to '')
-rw-r--r-- | synapse/storage/profile.py | 6 |
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( |