sequelize-auto-migrations icon indicating copy to clipboard operation
sequelize-auto-migrations copied to clipboard

'No changes found' for first migration

Open assapir opened this issue 5 years ago • 3 comments

Trying to create the first migration

node_modules/.bin/makemigration --name init

resulting

No changes found

although there are 3 new models in the models models-path

assapir avatar Jun 06 '19 07:06 assapir

Was this ever resolved?

tjshamhu avatar Dec 16 '19 15:12 tjshamhu

Not that I am aware of

assapir avatar Dec 16 '19 16:12 assapir

@assapir @tjsamhu

I'm guessing you didn't import your models?

Object.keys(models).forEach((modelName) => {
    db[modelName] = sequelize.import(models[modelName]);
});

douglas-treadwell avatar Apr 13 '20 04:04 douglas-treadwell

this help solve my issues thanks you

Asinging avatar Oct 25 '22 03:10 Asinging