missing await

This commit is contained in:
Ulf Gebhardt 2021-08-23 00:08:09 +02:00
parent 197f1975bf
commit e8d6e871c4
No known key found for this signature in database
GPG Key ID: 81308EFE29ABFEBD

View File

@ -30,7 +30,7 @@ export default async (): Promise<void> => {
`SHOW COLUMNS FROM \`${CONFIG.DB_DATABASE}\`.\`migrations\` LIKE 'db_version';`,
)
if (result.length > 0) {
con.query(`DROP TABLE \`${CONFIG.DB_DATABASE}\`.\`migrations\``)
await con.query(`DROP TABLE \`${CONFIG.DB_DATABASE}\`.\`migrations\``)
// eslint-disable-next-line no-console
console.log('Found and dropped old migrations table')
}