CRM_Core_DAO::executeQuery("DELETE FROM civicrm_migration_mapping where entity_table = '$tableName'");
foreach ($values as $childID => $masterID) {
$mapValues[] = "($masterID,$childID,'$tableName' )";
CRM_Core_DAO::executeQuery("DELETE FROM civicrm_migration_mapping where entity_table = '$tableName'");
foreach ($values as $childID => $masterID) {
$mapValues[] = "($masterID,$childID,'$tableName' )";