Skip to content
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

Try to run the latest migration on start up if it is dirty (failed) #5560

Open
IvanBelyakoff opened this issue Jul 23, 2024 · 0 comments
Open

Comments

@IvanBelyakoff
Copy link
Contributor

Problem

Currently there is no good way for user to recover if DB migration fails (besides restoring account, restoring DB from back up or manually fixing the DB issues). We dont support migration down (not sure if there is some technical limitation or we just dont use 'down' migration files.

What we could do is to try run the latest failed migration on startup. Then if we fix the migration issue in a new release (modify the buggy migration file), the issue will be fixed for the user.

Implementation

Try to run dirty migration on startup.

Acceptance Criteria

Write a test that migration proceeds successfully if the buggy migration file is fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

1 participant