We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If a set of migrations is executed within the same second, their roll-back may be executed in a wrong order.
I have these migrations in my MySql:
In my case, the rollback 1st deletes the table, than tries to de-initialize contents of the deleted table, which results in an error.
knex-migrate down --to 0 grabs all the migrations, then orders them by the migration_date. It should order the migrations by their identifiers. Here is the culprit: https://github.com/sheerun/knex-migrate/blob/master/src/storage.js#L59
knex-migrate down --to 0
migration_date
The text was updated successfully, but these errors were encountered:
a5d019e
Thank you for noticing this, I've released a fix, could you check?
Sorry, something went wrong.
It resolved the issue. Thank you, @sheerun !
No branches or pull requests
If a set of migrations is executed within the same second, their roll-back may be executed in a wrong order.
I have these migrations in my MySql:
In my case, the rollback 1st deletes the table, than tries to de-initialize contents of the deleted table, which results in an error.
knex-migrate down --to 0
grabs all the migrations, then orders them by themigration_date
. It should order the migrations by their identifiers. Here is the culprit:https://github.com/sheerun/knex-migrate/blob/master/src/storage.js#L59
The text was updated successfully, but these errors were encountered: