Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
synapse
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Timo Ley
synapse
Commits
61cd5d90
Commit
61cd5d90
authored
9 years ago
by
David Baker
Browse files
Options
Downloads
Patches
Plain Diff
Be more postgressive
parent
fb95035a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
synapse/storage/registration.py
+2
-2
2 additions, 2 deletions
synapse/storage/registration.py
synapse/storage/schema/delta/17/user_threepids.sql
+2
-2
2 additions, 2 deletions
synapse/storage/schema/delta/17/user_threepids.sql
with
4 additions
and
4 deletions
synapse/storage/registration.py
+
2
−
2
View file @
61cd5d90
...
@@ -181,7 +181,7 @@ class RegistrationStore(SQLBaseStore):
...
@@ -181,7 +181,7 @@ class RegistrationStore(SQLBaseStore):
@defer.inlineCallbacks
@defer.inlineCallbacks
def
user_add_threepid
(
self
,
user_id
,
medium
,
address
,
validated_at
,
added_at
):
def
user_add_threepid
(
self
,
user_id
,
medium
,
address
,
validated_at
,
added_at
):
yield
self
.
_simple_upsert
(
"
user_threepids
"
,
{
yield
self
.
_simple_upsert
(
"
user_threepids
"
,
{
"
user
"
:
user_id
,
"
user
_id
"
:
user_id
,
"
medium
"
:
medium
,
"
medium
"
:
medium
,
"
address
"
:
address
,
"
address
"
:
address
,
},
{
},
{
...
@@ -193,7 +193,7 @@ class RegistrationStore(SQLBaseStore):
...
@@ -193,7 +193,7 @@ class RegistrationStore(SQLBaseStore):
def
user_get_threepids
(
self
,
user_id
):
def
user_get_threepids
(
self
,
user_id
):
ret
=
yield
self
.
_simple_select_list
(
ret
=
yield
self
.
_simple_select_list
(
"
user_threepids
"
,
{
"
user_threepids
"
,
{
"
user
"
:
user_id
"
user
_id
"
:
user_id
},
},
[
'
medium
'
,
'
address
'
,
'
validated_at
'
,
'
added_at
'
],
[
'
medium
'
,
'
address
'
,
'
validated_at
'
,
'
added_at
'
],
'
user_get_threepids
'
'
user_get_threepids
'
...
...
This diff is collapsed.
Click to expand it.
synapse/storage/schema/delta/17/user_threepids.sql
+
2
−
2
View file @
61cd5d90
CREATE
TABLE
user_threepids
(
CREATE
TABLE
user_threepids
(
user
TEXT
NOT
NULL
,
user
_id
TEXT
NOT
NULL
,
medium
TEXT
NOT
NULL
,
medium
TEXT
NOT
NULL
,
address
TEXT
NOT
NULL
,
address
TEXT
NOT
NULL
,
validated_at
BIGINT
NOT
NULL
,
validated_at
BIGINT
NOT
NULL
,
added_at
BIGINT
NOT
NULL
,
added_at
BIGINT
NOT
NULL
,
CONSTRAINT
user_medium_address
UNIQUE
(
user
,
medium
,
address
)
CONSTRAINT
user_medium_address
UNIQUE
(
user
,
medium
,
address
)
);
);
CREATE
INDEX
user_threepids_user
ON
user_threepids
(
user
);
CREATE
INDEX
user_threepids_user
_id
ON
user_threepids
(
user
_id
);
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment