#3078·knex

Set custom route for knex migrate:make

Author: whitte-hCreated Mar 3, 2019Updated Sep 23, 2026
LabelsNG_bug

Currently, I have this project structure: src -entities --users ---model.js ---migrations ----20190303042400_create_users_table

What I'm trying to accomplish is to have my config setted up to my entities folder, so I can do like: npx knex migrate:make create_users_table --migrations-directory users

But I can only accomplish this by doing: npx knex migrate:make create_users_table1 --cwd="./src/entities" --migrations-directory users/migrations That I find very repetitive given the fact that my entities folder will never change, I tried to set a base folder route in my knex file but I didn't get to make it work, so, is it possible?