Migration failed for one user only what could went wrong? #3369
-
Hello, Sorry taking your time. I recently added few columns to my table and run migration. Tests seemed to be passing and it worked on couple devices that I tested which had previous version. However I got crashlogs from a user who couldnt migrate. I believe this happened to only 1 user, I'm wondering what could have gone wrong so that I can prevent it in the future and what is the best way for me to recover this user's database.
Error received |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
It's not clear to me how this could have happened either. To help me investigate, do you have access to the full error message (ideally with the entire statement). My best guess would have been that a partial migration has already been applied, but that makes no sense here since you're using a transaction. |
Beta Was this translation helpful? Give feedback.
This is very likely related to step-by-step migrations not being used at these older versions.
Did you use the tests generated by
make-migrations
? We have a test there that tests all combinations of schema migrations:drift/examples/migrations_example/test/drift/default/migration_test.dart
Lines 26 to 39 in 7f18724