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
86fc9b61
Commit
86fc9b61
authored
10 years ago
by
Erik Johnston
Browse files
Options
Downloads
Patches
Plain Diff
For backwards compat, make state_groups.id have a type of int, not varchar
parent
90bcb869
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
synapse/storage/schema/full_schemas/16/state.sql
+1
-1
1 addition, 1 deletion
synapse/storage/schema/full_schemas/16/state.sql
synapse/storage/state.py
+1
-1
1 addition, 1 deletion
synapse/storage/state.py
with
2 additions
and
2 deletions
synapse/storage/schema/full_schemas/16/state.sql
+
1
−
1
View file @
86fc9b61
...
...
@@ -14,7 +14,7 @@
*/
CREATE
TABLE
IF
NOT
EXISTS
state_groups
(
id
VARCHAR
(
20
)
PRIMARY
KEY
,
id
BIGINT
UNSIGNED
PRIMARY
KEY
,
room_id
VARCHAR
(
150
)
NOT
NULL
,
event_id
VARCHAR
(
150
)
NOT
NULL
);
...
...
This diff is collapsed.
Click to expand it.
synapse/storage/state.py
+
1
−
1
View file @
86fc9b61
...
...
@@ -93,7 +93,7 @@ class StateStore(SQLBaseStore):
state_group
=
context
.
state_group
if
not
state_group
:
state_group
=
_mak
e_group_id
(
self
.
_clock
)
state_group
=
self
.
_stat
e_group
s
_id
_gen
.
get_next_txn
(
txn
)
self
.
_simple_insert_txn
(
txn
,
table
=
"
state_groups
"
,
...
...
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