Revert "fix: prevent using absolute table path in migrations unless required (#10123)" (#10624)

This reverts commit dd595242a7fbb8c7445cc79bf0b751f1ed1762bd.
This commit is contained in:
Lucian Mocanu 2024-01-26 08:21:08 +01:00 committed by GitHub
parent 46249303be
commit 8f371f2397
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3313,7 +3313,7 @@ export class SapQueryRunner extends BaseQueryRunner implements QueryRunner {
protected escapePath(target: Table | View | string): string {
const { schema, tableName } = this.driver.parseTableName(target)
if (schema && schema !== this.driver.schema) {
if (schema) {
return `"${schema}"."${tableName}"`
}