local database setup for mac

This commit is contained in:
Arjun Patel
2019-02-23 18:34:14 -08:00
parent a7de8b3480
commit ef7aee2ff7
3 changed files with 3 additions and 95 deletions
+1
View File
@@ -36,6 +36,7 @@ db.sequelize
console.error('Unable to connect to the database:', err);
});
console.log(process.env.DROP_TABLES);
//force: true will drop the table if it already exists
const drop_tables = false;
db.sequelize.sync({ force: drop_tables }).then(() => {