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

Knex:warning - migration file "null" failed #2373

capaj opened this issue Dec 8, 2017 · 0 comments

Knex:warning - migration file "null" failed #2373

capaj opened this issue Dec 8, 2017 · 0 comments


Copy link

@capaj capaj commented Dec 8, 2017

when a migration fails before any migration file, this slightly confusing warning is logged into the console.
this was the full log:

Knex:warning - migration file "null" failed
Knex:warning - Can't take lock to run migrations: Migration table is already locked
Knex:warning - If you are sure migrations are not running you can release the lock manually by deleting all the rows from migrations lock table: knex_migrations_lock
throw err;
capaj added a commit to capaj/knex that referenced this issue Dec 8, 2017
only log the migration name when it is not falsy
@elhigu elhigu closed this in 6ffcaed Dec 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant