I am trying to connect mysql to my nodejs project. While creating connection to nodejs it automatically creates tables based on models i have defined. I don't want to auto create tables. How do i disable it?
My DB Configuration
var sequelize = new Sequelize(config.db.database, config.db.username,
config.db.password, {
host : config.db.host,
port : config.db.port,
dialect : config.db.connection
});
My Connection to DB
/* Database Connection */
db.sequelize.sync().then(function() {
console.log('Nice! Database looks fine')
}).catch(function(err) {
console.log(err, "Something went wrong with the Database Update!")
});