-
-
Notifications
You must be signed in to change notification settings - Fork 180
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
sqlite to postgres migration fails #214
Comments
I am running into the same issue. Could it be solved, when you actually change the order of the migration? This way it should avoid the issue with the non existing fk reference because the pk is there first. |
by today, it looks like another migration issue has occured. Namely Migrating portal: found 156 rows of data, migrating in 3 batches: panic: UNIQUE constraint failed: portal.jid, portal.receiver
oddly enough, doing the migration "from hand" looks good so far for the first 3 tables portal, user and puppet. was using the latest build
|
Since a recent update I'm getting a different error:
Version: Maybe caused by #260? |
Hi, i was trying to migrate the db again with a friend of mine and we found two issues with it.
comes up. When taking a look into the expression the last column for "encrypted" has the "0" or "1" in it. by changing it to "true" or "false" the statement is going through without any noticable issues.
If it would only point 1, i could have imported the whole db manually, but i am not sure about the conversion of the binary formats from one to another without risking to corrupt the Informations. It would be great to get the migration up and running because i don't want to loose the whole chat-histories and portals which has already been created up to now. |
I guess the problem from the OP is related to the fact that 214 rows exist in |
I can't reproduce this anymore with my current database from current git master. |
mautrix-whatsapp 0.1.3+dev.6cb55f39 (Jul 30 2020, 19:26:53)
fresh db, created with the same settings that are recommended for synapse:
The text was updated successfully, but these errors were encountered: