How to generate migrations when you defined models and config and migration in custom path. #15445
Replies: 2 comments 1 reply
-
|
Beta Was this translation helpful? Give feedback.
-
With this update, when using sync force true, tables are creating in db, but after I deleted db and created it again fresh then runing generate migration command is generating empty migration file. |
Beta Was this translation helpful? Give feedback.
-
How to generate migrations when you defined models and config and migration in custom path.
Everything is working perfect.
Migration is generating but without the models details that I have defined.
.sequelizerc
config.json note: I am using my db credential correctly
.db
models -> User.js
project structure.
Now when I am running `npx sequelize migration:generate --name user` it is creating migration file which looks like,
Beta Was this translation helpful? Give feedback.
All reactions