sequelize.sync({ force: true }) is not working some times
问题 i am using gulp tasks for migration of database. For testing purpose i am using different database. so i need exactly same database. i am trying to do with sequelize.sync({ force: true }) but its not working. i am having my all models in portal-model. here is the code: const models = require('portal-models'); gulp.task('migrate', ['create-database'], (done) => { models.sequelize.query('SET FOREIGN_KEY_CHECKS = 0') .then(() => models.sequelize.sync({ force: true, alter: true })) .... .... ....