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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user