// The installer will do that
if (tables.length === 0) return
- let actualVersion: number = null
+ let actualVersion: number | null = null
const [ rows ] = await sequelizeTypescript.query('SELECT "migrationVersion" FROM "application"')
if (rows && rows[0] && rows[0].migrationVersion) {
try {
await executeMigration(actualVersion, migrationScript)
} catch (err) {
- logger.error('Cannot execute migration %s.', migrationScript.version, err)
+ logger.error('Cannot execute migration %s.', migrationScript.version, { err })
process.exit(-1)
}
}