update context API
All checks were successful
Deploy to Production / deploy (push) Successful in 19s
All checks were successful
Deploy to Production / deploy (push) Successful in 19s
This commit is contained in:
@@ -17,8 +17,8 @@ async function syncDatabase() {
|
||||
setupRelationships();
|
||||
console.log('✅ Model relationships configured');
|
||||
|
||||
// Sync all models (creates tables if not exist)
|
||||
await sequelize.sync({ alter: false, force: false });
|
||||
// Sync all models (creates tables if not exist, alters existing tables)
|
||||
await sequelize.sync({ alter: true, force: false });
|
||||
console.log('✅ All models synced successfully');
|
||||
|
||||
// Show created tables
|
||||
|
||||
Reference in New Issue
Block a user