From 439f287405828b890087fa0d87f206dc3d3080d1 Mon Sep 17 00:00:00 2001 From: uo288543 Date: Fri, 26 Apr 2024 15:27:49 +0200 Subject: [PATCH] add force true --- users/services/user-model.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/users/services/user-model.js b/users/services/user-model.js index 89a59234..e5ee623d 100644 --- a/users/services/user-model.js +++ b/users/services/user-model.js @@ -208,7 +208,7 @@ const QuestionsRecord = sequelize.define('QuestionsRecord', { }); // Synchronize the model with the database -sequelize.sync() +sequelize.sync({ force: true }) .then(() => { console.log('Model synchronized successfully with the database'); })