diff --git a/app/Console/Commands/Grapper/Sofascore/SqlMover.php b/app/Console/Commands/Grapper/Sofascore/SqlMover.php index 8bab9bb5..ae4a5001 100644 --- a/app/Console/Commands/Grapper/Sofascore/SqlMover.php +++ b/app/Console/Commands/Grapper/Sofascore/SqlMover.php @@ -13,19 +13,20 @@ class SqlMover Notice::note('SqlMover', 'b'); + Notice::note('StatistikoPlayer', 'b'); $res = StatistikoEvent::pluck('match_id'); foreach ($res as $match_id) { - $has = StatistikoPlayer::where('match_id', $match_id)->first(); - if (!$has) - Notice::note('StatistikoPlayer missing ' . $match_id, 'b'); - } - - $res = StatistikoPlayer::groupBy('match_id')->pluck('match_id'); - foreach ($res as $match_id) { - $has = StatistikoEvent::where('match_id', $match_id)->first(); + $has = StatistikoPlayer::where('match_id', (int) $match_id)->first(); + if (!$has) + echo $match_id . "\n"; + } + + Notice::note('StatistikoEvent', 'b'); + $res = StatistikoPlayer::groupBy('match_id')->pluck('match_id'); + foreach ($res as $match_id) { + $has = StatistikoEvent::where('match_id', (int) $match_id)->first(); if (!$has) echo $match_id . "\n"; - // Notice::note('StatistikoEvent missing ' . $match_id, 'b'); } Notice::note('done', 'bb', 1);