fix: The table existence check should quote the table name (#7949)
This commit is contained in:
@@ -40,7 +40,9 @@ export function getMigration(
|
||||
|
||||
let hasTable = false
|
||||
try {
|
||||
await orm.em.getConnection().execute(`SELECT 1 FROM ${tableName} LIMIT 0`)
|
||||
await orm.em
|
||||
.getConnection()
|
||||
.execute(`SELECT 1 FROM "${tableName}" LIMIT 0`)
|
||||
hasTable = true
|
||||
} catch {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user