fix(db-postgres): handle undefined fallback for adapter.schemaName in relationships migration (#10384)

Fixes from https://github.com/payloadcms/payload/pull/10322
This commit is contained in:
Sasha
2025-01-06 17:19:21 +02:00
committed by GitHub
parent 53aea622f9
commit 1525cc6e3a

View File

@@ -102,7 +102,7 @@ export const migrateRelationships = async ({
})
}
const deleteStatement = `DELETE FROM "${adapter.schemaName}"."${tableName}${adapter.relationshipsSuffix}" WHERE ${where}`
const deleteStatement = `DELETE FROM "${schemaName}"."${tableName}${adapter.relationshipsSuffix}" WHERE ${where}`
if (debug) {
payload.logger.info('DELETING ROWS')
payload.logger.info(deleteStatement)