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
6418b037
Unverified
Commit
6418b037
authored
4 years ago
by
Patrick Cloke
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Ignore the UI Auth sessions when porting from sqlite to postgresql (#7711)
parent
e07a8caf
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
changelog.d/7711.bugfix
+1
-0
1 addition, 0 deletions
changelog.d/7711.bugfix
scripts/synapse_port_db
+12
-7
12 additions, 7 deletions
scripts/synapse_port_db
with
13 additions
and
7 deletions
changelog.d/7711.bugfix
0 → 100644
+
1
−
0
View file @
6418b037
The `synapse_port_db` script no longer fails when the `ui_auth_sessions` table is non-empty. This bug has existed since v1.13.0rc1.
This diff is collapsed.
Click to expand it.
scripts/synapse_port_db
+
12
−
7
View file @
6418b037
...
@@ -127,6 +127,16 @@ APPEND_ONLY_TABLES = [
...
@@ -127,6 +127,16 @@ APPEND_ONLY_TABLES = [
]
]
IGNORED_TABLES
=
{
"
user_directory
"
,
"
user_directory_search
"
,
"
users_who_share_rooms
"
,
"
users_in_pubic_room
"
,
"
ui_auth_sessions
"
,
"
ui_auth_sessions_credentials
"
,
}
# Error returned by the run function. Used at the top-level part of the script to
# Error returned by the run function. Used at the top-level part of the script to
# handle errors and return codes.
# handle errors and return codes.
end_error
=
None
end_error
=
None
...
@@ -289,13 +299,8 @@ class Porter(object):
...
@@ -289,13 +299,8 @@ class Porter(object):
)
)
return
return
if
table
in
(
if
table
in
IGNORED_TABLES
:
"
user_directory
"
,
# We don't port these tables, as they're a faff and we can regenerate
"
user_directory_search
"
,
"
users_who_share_rooms
"
,
"
users_in_pubic_room
"
,
):
# We don't port these tables, as they're a faff and we can regenreate
# them anyway.
# them anyway.
self
.
progress
.
update
(
table
,
table_size
)
# Mark table as done
self
.
progress
.
update
(
table
,
table_size
)
# Mark table as done
return
return
...
...
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