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
24110255
Unverified
Commit
24110255
authored
4 years ago
by
Patrick Cloke
Committed by
GitHub
4 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Sync ignored table names in synapse_port_db to current database schema (#7717)
parent
95e41f36
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/7717.bugfix
+1
-0
1 addition, 0 deletions
changelog.d/7717.bugfix
scripts/synapse_port_db
+12
-4
12 additions, 4 deletions
scripts/synapse_port_db
with
13 additions
and
4 deletions
changelog.d/7717.bugfix
0 → 100644
+
1
−
0
View file @
24110255
Fix the tables ignored by `synapse_port_db` to be in sync the current database schema.
This diff is collapsed.
Click to expand it.
scripts/synapse_port_db
+
12
−
4
View file @
24110255
...
...
@@ -129,10 +129,20 @@ APPEND_ONLY_TABLES = [
IGNORED_TABLES
=
{
# We don't port these tables, as they're a faff and we can regenerate
# them anyway.
"
user_directory
"
,
"
user_directory_search
"
,
"
users_who_share_rooms
"
,
"
users_in_pubic_room
"
,
"
user_directory_search_content
"
,
"
user_directory_search_docsize
"
,
"
user_directory_search_segdir
"
,
"
user_directory_search_segments
"
,
"
user_directory_search_stat
"
,
"
user_directory_search_pos
"
,
"
users_who_share_private_rooms
"
,
"
users_in_public_room
"
,
# UI auth sessions have foreign keys so additional care needs to be taken,
# the sessions are transient anyway, so ignore them.
"
ui_auth_sessions
"
,
"
ui_auth_sessions_credentials
"
,
}
...
...
@@ -301,8 +311,6 @@ class Porter(object):
return
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