Skip to content

Commit

Permalink
MAGETWO-72093: [GitHub] Integrity check error clarification magento#355
Browse files Browse the repository at this point in the history
  • Loading branch information
victor-v-rad committed Nov 16, 2017
1 parent f430d97 commit a33d8e9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion src/Migration/Step/DataIntegrity/Integrity.php
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,10 @@ protected function getDocumentList()
*/
private function buildLogMessage(OrphanRecordsChecker $checker)
{
$message = 'Foreign key (%s) constraint fails on source database.'
. ' Orphan records id: %s from `%s`.`%s` has no referenced records in `%s`';
return sprintf(
'Foreign key (%s) constraint fails. Orphan records id: %s from `%s`.`%s` has no referenced records in `%s`',
$message,
$checker->getKeyName(),
implode(',', $checker->getOrphanRecordsIds()),
$checker->getChildTable(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,9 +106,9 @@ public function documentsDataProvider()
'result' => false,
'messages' => [
\Monolog\Logger::ERROR => [
'Foreign key (FK_EAV_ATTR_SET_ENTT_TYPE_ID_EAV_ENTT_TYPE_ENTT_TYPE_ID) constraint fails. ' .
'Orphan records id: 2,3 from `eav_attribute_set`.`entity_type_id` has no referenced records ' .
'in `eav_entity_type`'
'Foreign key (FK_EAV_ATTR_SET_ENTT_TYPE_ID_EAV_ENTT_TYPE_ENTT_TYPE_ID) constraint fails ' .
'on source database. Orphan records id: 2,3 from `eav_attribute_set`.`entity_type_id` '.
'has no referenced records in `eav_entity_type`'
]
]
]
Expand Down

0 comments on commit a33d8e9

Please sign in to comment.