You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Firstly, thank you for your hard work.
Then, we want to use the skipIf method to manage feature flags while keeping the process automated.
As per the doc, we expect it to skip the migration, and continue with the following afterwards.
Current behavior
The skipIf does skip the current migration without problems if it is the last one. If the migration using it is followed by a migration which is not skipped, the following error occurs : Transaction commit failed because the transaction has been marked for rollback only.
Bug Report
Summary
Firstly, thank you for your hard work.
Then, we want to use the
skipIf
method to manage feature flags while keeping the process automated.As per the doc, we expect it to skip the migration, and continue with the following afterwards.
Current behavior
The
skipIf
does skip the current migration without problems if it is the last one. If the migration using it is followed by a migration which is not skipped, the following error occurs :Transaction commit failed because the transaction has been marked for rollback only.
How to reproduce
A quick project can be setup with Symfony as
Then create 3 migrations, use
$this->skipIf(true)
in the middle one, and run all migrationsExpected behavior
the command should terminate, and the list should show that the first and last were executed, but not the middle one.
The text was updated successfully, but these errors were encountered: