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
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
No related tags found
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 = [
]
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
# handle errors and return codes.
end_error
=
None
...
...
@@ -289,13 +299,8 @@ class Porter(object):
)
return
if
table
in
(
"
user_directory
"
,
"
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
if
table
in
IGNORED_TABLES
:
# We don't port these tables, as they're a faff and we can regenerate
# them anyway.
self
.
progress
.
update
(
table
,
table_size
)
# Mark table as done
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