Skip to content

Commit

Permalink
add force true
Browse files Browse the repository at this point in the history
  • Loading branch information
uo288543 committed Apr 26, 2024
1 parent 2f829c0 commit 439f287
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion users/services/user-model.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
})
Expand Down

0 comments on commit 439f287

Please sign in to comment.