New in version 0.3.0
The bridge includes a simple script for migrating between database management systems. It simply reads the data from one database and inserts it into another database
The script is located in mautrix_telegram/scripts/dbms_migrate. It can be ran using
Both <source db> and <target db> are full database URLs, e.g. sqlite:///mautrix-telegram.db and postgres://user:password@localhost/mautrixtelegram
Steps:
- Stop the bridge
- Update the database URI in the config
- Initiailize the new database with
alembic upgrade head (for Docker you should cd /opt/mautrix-telegram/ and you may need to alembic -x config=/path/to/config.yaml upgrade head)
- Run the database migration script
- Start the bridge again