Added movability of dialogs
This commit is contained in:
@@ -8,13 +8,11 @@ import models from '../models/index.js';
|
||||
const syncDatabase = async () => {
|
||||
try {
|
||||
await initializeDatabase();
|
||||
for (const model of Object.values(models)) {
|
||||
await model.sync({ alter: true });
|
||||
}
|
||||
setupAssociations();
|
||||
for (const model of Object.values(models)) {
|
||||
await model.sync({ alter: true });
|
||||
await model.sync();
|
||||
}
|
||||
|
||||
await initializeSettings();
|
||||
await initializeTypes();
|
||||
await initializeUserRights();
|
||||
|
||||
Reference in New Issue
Block a user