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
e2722f58
Commit
e2722f58
authored
10 years ago
by
Erik Johnston
Browse files
Options
Downloads
Patches
Plain Diff
Fix schema again
parent
a1665c50
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/schema/full_schemas/11/transactions.sql
+2
-2
2 additions, 2 deletions
synapse/storage/schema/full_schemas/11/transactions.sql
synapse/storage/schema/full_schemas/11/users.sql
+1
-1
1 addition, 1 deletion
synapse/storage/schema/full_schemas/11/users.sql
with
3 additions
and
3 deletions
synapse/storage/schema/full_schemas/11/transactions.sql
+
2
−
2
View file @
e2722f58
...
...
@@ -29,7 +29,7 @@ CREATE INDEX IF NOT EXISTS transactions_have_ref ON received_transactions(origin
-- Stores what transactions we've sent, what their response was (if we got one) and whether we have
-- since referenced the transaction in another outgoing transaction
CREATE
TABLE
IF
NOT
EXISTS
sent_transactions
(
id
BIGINT
PRIMARY
KEY
,
-- This is used to apply insertion ordering
id
BIGINT
PRIMARY
KEY
AUTOINCREMENT
,
-- This is used to apply insertion ordering
transaction_id
VARCHAR
(
150
),
destination
VARCHAR
(
150
),
response_code
INTEGER
DEFAULT
0
,
...
...
@@ -52,7 +52,7 @@ CREATE TABLE IF NOT EXISTS transaction_id_to_pdu(
pdu_origin
VARCHAR
(
150
)
);
CREATE
INDEX
IF
NOT
EXISTS
transaction_id_to_pdu_tx
ON
transaction_id_to_pdu
(
transaction_id
,
destination
)
CREATE
INDEX
IF
NOT
EXISTS
transaction_id_to_pdu_tx
ON
transaction_id_to_pdu
(
transaction_id
,
destination
)
;
CREATE
INDEX
IF
NOT
EXISTS
transaction_id_to_pdu_dest
ON
transaction_id_to_pdu
(
destination
);
-- To track destination health
...
...
This diff is collapsed.
Click to expand it.
synapse/storage/schema/full_schemas/11/users.sql
+
1
−
1
View file @
e2722f58
...
...
@@ -22,7 +22,7 @@ CREATE TABLE IF NOT EXISTS users(
);
CREATE
TABLE
IF
NOT
EXISTS
access_tokens
(
id
BIGINT
PRIMARY
KEY
,
id
BIGINT
PRIMARY
KEY
AUTOINCREMENT
,
user_id
VARCHAR
(
150
)
NOT
NULL
,
device_id
VARCHAR
(
150
),
token
VARCHAR
(
150
)
NOT
NULL
,
...
...
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