migrations
migrations copied to clipboard
MigrateCommand in non-interactive mode exits with 1 error code when there are unavailable migrations
Hello,
considering there is one row in database migration table and there are no migration files in code base, running
php artisan doctrine:migrations:migrate --no-interaction --force
outputs
WARNING! You have previously executed migrations in the database that are not registered migrations.
[...]
Migration cancelled!
In non-interaction mode it should print a warning, but proceed with migration execution (as implemented in doctrine/migrations MigrateCommand command).
Correct me if i'm wrong, but currently there is no way to overcome this warning.
I can submit a PR for this, just let me know.