question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

cli - `migrate:make` cannot be used without a knexfile.js

See original GitHub issue

the command: knex migrate:make <name> cannot be used without a knexfile.js. This is literally pointless. If I want to create a migration in the directory I am in, then I shouldn’t need a knexfile.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
auriumcommented, Jun 1, 2018

It still require client configuration for cli migrate:make. Is this really necessary?

1reaction
absoluxcommented, Jul 14, 2017

Or an option -d or --directory, pointing by default to cwd, can be added to the cli instead of the knexfile.

Read more comments on GitHub >

github_iconTop Results From Across the Web

cli - migrate:make cannot be used without a knexfile.js #2158
the command: knex migrate:make <name> cannot be used without a knexfile.js. This is literally pointless. If I want to create a migration in ......
Read more >
Migrations | Knex.js
Once you have a knexfile.js, you can use the migration tool to create migration ... if the --stub option is not passed, the...
Read more >
Why yarn knex is not migrating in local repo - Stack Overflow
I try something similar, yarn knex migrate:make init --knexfile --directory ./config/knexfile.js . and this didn't work. although I will try ...
Read more >
Knex.js Tutorial For Beginners - Shahed Nasser
This script uses Knex's CLI command migrate:latest to migrate the latest migrations that have not been migrated yet. The option --knexfile ...
Read more >
Use SQL Query Builder Knex.js with Node.js and Express.js
Migrate using migration CLI. Next, run the $ knex migrate:make migration_name command. Now look inside the migrations directory you specified earlier, you ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found