Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Matrix
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Operate
Environments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Matrix
Commits
0d7f0feb
Commit
0d7f0feb
authored
9 years ago
by
Erik Johnston
Browse files
Options
Downloads
Patches
Plain Diff
Uniquely name unique constraint
parent
b7cb37b1
No related branches found
Branches containing commit
Tags
v0.21.1
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
synapse/storage/schema/delta/21/end_to_end_keys.sql
+2
-2
2 additions, 2 deletions
synapse/storage/schema/delta/21/end_to_end_keys.sql
with
2 additions
and
2 deletions
synapse/storage/schema/delta/21/end_to_end_keys.sql
+
2
−
2
View file @
0d7f0feb
...
...
@@ -19,7 +19,7 @@ CREATE TABLE IF NOT EXISTS e2e_device_keys_json (
device_id
TEXT
NOT
NULL
,
-- Which of the user's devices these keys are for.
ts_added_ms
BIGINT
NOT
NULL
,
-- When the keys were uploaded.
key_json
TEXT
NOT
NULL
,
-- The keys for the device as a JSON blob.
CONSTRAINT
uniqueness
UNIQUE
(
user_id
,
device_id
)
CONSTRAINT
e2e_device_keys_json_
uniqueness
UNIQUE
(
user_id
,
device_id
)
);
...
...
@@ -30,5 +30,5 @@ CREATE TABLE IF NOT EXISTS e2e_one_time_keys_json (
key_id
TEXT
NOT
NULL
,
-- An id for suppressing duplicate uploads.
ts_added_ms
BIGINT
NOT
NULL
,
-- When this key was uploaded.
key_json
TEXT
NOT
NULL
,
-- The key as a JSON blob.
CONSTRAINT
uniqueness
UNIQUE
(
user_id
,
device_id
,
algorithm
,
key_id
)
CONSTRAINT
e2e_one_time_keys_json_
uniqueness
UNIQUE
(
user_id
,
device_id
,
algorithm
,
key_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