diff options
Diffstat (limited to 'server/initializers/migrator.ts')
-rw-r--r-- | server/initializers/migrator.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/initializers/migrator.ts b/server/initializers/migrator.ts index 3184ec920..4b3be6d16 100644 --- a/server/initializers/migrator.ts +++ b/server/initializers/migrator.ts | |||
@@ -96,10 +96,10 @@ function executeMigration (actualVersion: number, entity: { version: string, scr | |||
96 | sequelize: db.sequelize | 96 | sequelize: db.sequelize |
97 | } | 97 | } |
98 | 98 | ||
99 | migrationScript.up(options) | 99 | return migrationScript.up(options) |
100 | .then(() => { | 100 | .then(() => { |
101 | // Update the new migration version | 101 | // Update the new migration version |
102 | db.Application.updateMigrationVersion(versionScript, t) | 102 | return db.Application.updateMigrationVersion(versionScript, t) |
103 | }) | 103 | }) |
104 | }) | 104 | }) |
105 | } | 105 | } |