Repository navigation
Conversation
…undle importer did --synapse-db takes a SQLite database file as well as a PostgreSQL connection string. The file is opened read-only and immutable, and the import refuses while a -wal or -journal beside it holds changes. Rows from either database come back as one row type; queries are written in SQL both understand, with a variant where they differ (table and column lookups, the to-device stream position). MAS stays PostgreSQL only. Also, as the bundle importer did: - erased users are marked erased, not only their events pruned - accounts waiting for approval are locked instead of left open - account types and consent versions are reported as not kept - devices keep Synapse's last-seen time and address - media is checked against Synapse's recorded size and SHA-256, keeps its upload time on local storage, and files the database doesn't list are reported - Synapse 1.164 (schema 95) is accepted
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Hi, I was working on a python tool to perform the database migration but I noticed your approach is generally better using tuwunel's own import modules.
Altough I didn't go the postgres route the changes create an interface shared between both postgres and my db of choice, sqlite.
I just performed my own server migration and it did great, I missed only empty rooms but that's to be expected as they are handled differently between projects, but I also should mention I am not federated, so anything regarding federation wasn't fully tested and may need more tests.
It work similar to postgress
--import-synapseand--synapse-dbnow support sqlite.source.rs was split into multiple files in order to create an interface to support both dbs.
media keeps creation time and is integrity checked.
accounts awaiting approval could be logged into, they are moved to locked and need admin approval to unlock.