From 003b0094554d798ee7f88f3492bb4b0701450a9b Mon Sep 17 00:00:00 2001 From: Marc-Roig Date: Wed, 18 Jan 2023 16:54:03 +0100 Subject: [PATCH] specify content type schema name --- .../core/database/lib/validations/relations/bidirectional.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/database/lib/validations/relations/bidirectional.js b/packages/core/database/lib/validations/relations/bidirectional.js index 6d41db2da4..75ed3bfca8 100644 --- a/packages/core/database/lib/validations/relations/bidirectional.js +++ b/packages/core/database/lib/validations/relations/bidirectional.js @@ -66,14 +66,14 @@ const validateBidirectionalRelations = async (db) => { if (joinTableEmpty) { process.emitWarning( `Error on attribute "${invRelation.inversedBy}" in model "${contentType.singularName}" (${contentType.uid}).` + - ` Please modify your schema by renaming the key inversedBy by mappedBy.` + + ` Please modify your ${contentType.singularName} schema by renaming the key inversedBy by mappedBy.` + ` Ex: { inversedBy: "${relation.inversedBy}" } -> { mappedBy: "${relation.inversedBy}" } }` ); } else if (inverseJoinTableEmpty) { // Its safe to delete the inverse join table process.emitWarning( `Error on attribute "${relation.inversedBy}" in model "${invContentType.singularName}" (${invContentType.uid}).` + - ` Please modify your schema by renaming the key inversedBy by mappedBy.` + + ` Please modify your ${invContentType.singularName} schema by renaming the key inversedBy by mappedBy.` + ` Ex: { inversedBy: "${invRelation.inversedBy}" } -> { mappedBy: "${invRelation.inversedBy}" } }` ); } else {