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

Closed
capaj opened this Issue Dec 8, 2017 · 0 comments

Comments

Projects
None yet
1 participant
@capaj
Contributor

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
undefined
child_process.js:641
throw err;

capaj added a commit to capaj/knex that referenced this issue Dec 8, 2017

fixes tgriesser#2373
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