mirror of
https://github.com/strapi/strapi.git
synced 2025-09-26 17:00:55 +00:00
specify content type schema name
This commit is contained in:
parent
167aba4d97
commit
003b009455
@ -66,14 +66,14 @@ const validateBidirectionalRelations = async (db) => {
|
|||||||
if (joinTableEmpty) {
|
if (joinTableEmpty) {
|
||||||
process.emitWarning(
|
process.emitWarning(
|
||||||
`Error on attribute "${invRelation.inversedBy}" in model "${contentType.singularName}" (${contentType.uid}).` +
|
`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}" } }`
|
` Ex: { inversedBy: "${relation.inversedBy}" } -> { mappedBy: "${relation.inversedBy}" } }`
|
||||||
);
|
);
|
||||||
} else if (inverseJoinTableEmpty) {
|
} else if (inverseJoinTableEmpty) {
|
||||||
// Its safe to delete the inverse join table
|
// Its safe to delete the inverse join table
|
||||||
process.emitWarning(
|
process.emitWarning(
|
||||||
`Error on attribute "${relation.inversedBy}" in model "${invContentType.singularName}" (${invContentType.uid}).` +
|
`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}" } }`
|
` Ex: { inversedBy: "${invRelation.inversedBy}" } -> { mappedBy: "${invRelation.inversedBy}" } }`
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user