flexxnn / sequelize-auto-migrations

Migration generator && runner for sequelize
MIT License
258 stars 166 forks source link

'No changes found' for first migration #54

Closed assapir closed 2 years ago

assapir commented 5 years ago

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

tjshamhu commented 4 years ago

Was this ever resolved?

assapir commented 4 years ago

Not that I am aware of

douglas-treadwell commented 4 years ago

@assapir @tjsamhu

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

Object.keys(models).forEach((modelName) => {
    db[modelName] = sequelize.import(models[modelName]);
});
Asinging commented 2 years ago

this help solve my issues thanks you