-
Notifications
You must be signed in to change notification settings - Fork 49
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
ManualStepMigration is ignored at the first time (i.e. when DB version is 0) #436
Comments
I pushed a repository to reproduce this issue (https://github.com/k-kagurazaka/orma-migration-issue). Reproducing step is following:
Cause of this issue is that db version is still 0 after step 1 since |
Fix #436: ManualStepMigration not working
As described in #469, there were two independent issues on it:
A new version 6.0.2 fixes these issues. |
Overview
ManualStepMigration
doesn't run if thedbVersion
is 0 (See this code).However,
Database#setVersion
is called at onlyManualStepMigration
class, so when we add the first manual migration step to a project, the step will be ignored since the default dbVersion is 0.The text was updated successfully, but these errors were encountered: