From 76ab46fc879e9486e053362e514b9e9a92d88a64 Mon Sep 17 00:00:00 2001 From: amhsirak Date: Wed, 22 Jan 2025 19:01:00 +0530 Subject: [PATCH] chore: re-arrange --- server/src/storage/db.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/src/storage/db.ts b/server/src/storage/db.ts index b6854c55..40968df8 100644 --- a/server/src/storage/db.ts +++ b/server/src/storage/db.ts @@ -30,7 +30,8 @@ export const syncDB = async () => { try { //setupAssociations(); const isDevelopment = process.env.NODE_ENV === 'development'; - await sequelize.sync({ force: false, alter: true }); // force: true will drop and recreate tables on every run + // force: true will drop and recreate tables on every run + await sequelize.sync({ force: false, alter: true }); console.log('Database synced successfully!'); } catch (error) { console.error('Failed to sync database:', error);