Skip to content
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

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

Open
KamilKopaczyk opened this issue Feb 7, 2019 · 0 comments

Comments

@KamilKopaczyk
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant