-
Notifications
You must be signed in to change notification settings - Fork 69
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
Migrate anonymous instances to database #1500
Migrate anonymous instances to database #1500
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just did a quick skim of the changes - LGTM!
I'll do some testing on my end as well to check for any possible issues with this change. Thanks again for doing this! 😄
Hmm, I just tried to go from a clean install of 0.4.0 to the current changes, and the accounts are not appearing in the profile switcher anymore (both normal accounts and guest accounts) I am seeing this error on the logs which might be the issue:
I think we might have to do some checks to see if the columns exist before adding/removing them in the migration code (or add try catch blocks to them) |
I'll try to make some changes to the migration code to fix some of the issues |
Are you sure it was really a clean install? I'm not sure how we could get |
This is what I did:
I think this is what happened:
If I go from a version where the Drafts table is created (e.g., version 2), but does not contain I'm rewriting the migration logic right now so that it does migration step-by-step instead to hopefully avoid these types of situations: https://drift.simonbinder.eu/docs/migrations/step_by_step/#generating-step-by-step-code |
Ahh yes, you are totally right about what happened! Good catch. And I like the |
Pull Request Description
This PR makes the following database changes.
There should be no impact on the UI at this point, so please let me know if anything looks or acts funky after this migration!
Related to #1494.