dendrite icon indicating copy to clipboard operation
dendrite copied to clipboard

Migration from SQLite to Postgres

Open Semisol opened this issue 2 years ago • 2 comments

Description: A script to migrate data from SQLite to Postgres

This would, to the extent that is possible, attempt to copy data from SQLite to Postgres so that the database engine can be switched.

Semisol avatar Mar 13 '22 13:03 Semisol

This requires a bit of thought, because the database schemas across the two engines aren't exactly the same. We have different value formats for anything array-based and we have no sequences in SQLite so have had to workaround in other ways.

neilalexander avatar Mar 24 '22 16:03 neilalexander

I think dendrite would not need to take care for this. pgloader should do this well.

DanielHons avatar Apr 09 '22 21:04 DanielHons

We don't have any plans to support this currently. I appreciate that kinda sucks, but unfortunately we don't have the bandwidth to develop and maintain a migration system. The tables/columns are subtly different, such that it isn't possible to automatically map from one format to the other.

kegsay avatar Dec 06 '22 13:12 kegsay

You should check out this one:

https://github.com/spantaleev/matrix-docker-ansible-deploy/blob/master/docs/importing-synapse-sqlite.md

phtmgt avatar May 01 '23 09:05 phtmgt