migrations icon indicating copy to clipboard operation
migrations copied to clipboard

MigrateCommand in non-interactive mode exits with 1 error code when there are unavailable migrations

Open KamilKopaczyk opened this issue 6 years ago • 0 comments

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.

KamilKopaczyk avatar Feb 07 '19 15:02 KamilKopaczyk