mirror of
https://github.com/fsolla/teqo.git
synced 2026-11-26 21:53:06 +00:00
style: prettier migration reconciliation cleanup
This commit is contained in:
parent
32cc4f1c13
commit
8b3d5d383f
1 changed files with 1 additions and 3 deletions
|
|
@ -95,9 +95,7 @@ afterEach(async () => {
|
||||||
// WITH (FORCE) needs rights some Cloud Postgres roles lack when another
|
// WITH (FORCE) needs rights some Cloud Postgres roles lack when another
|
||||||
// backend still holds the DB; fall back to a plain DROP, then warn.
|
// backend still holds the DB; fall back to a plain DROP, then warn.
|
||||||
try {
|
try {
|
||||||
await adminPool.query(
|
await adminPool.query(`DROP DATABASE IF EXISTS ${quoteIdentifier(databaseName)} WITH (FORCE)`)
|
||||||
`DROP DATABASE IF EXISTS ${quoteIdentifier(databaseName)} WITH (FORCE)`,
|
|
||||||
)
|
|
||||||
} catch {
|
} catch {
|
||||||
await adminPool.query(`DROP DATABASE IF EXISTS ${quoteIdentifier(databaseName)}`)
|
await adminPool.query(`DROP DATABASE IF EXISTS ${quoteIdentifier(databaseName)}`)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue