diff --git a/server.js b/server.js index d57f761..d173444 100644 --- a/server.js +++ b/server.js @@ -37,7 +37,7 @@ db.sequelize }); //force: true will drop the table if it already exists -const drop_tables = process.env.DROP_TABLES; +const drop_tables = process.env.DROP_TABLES || false; db.sequelize.sync({ force: drop_tables }).then(() => { console.log(`Drop and Resync with { force: ${drop_tables} }`); });