This commit is contained in:
salam committed 2026-07-27 16:58:23 +02:00
1 parent 07119c492c
commit 956ae08bb9
1 file changed
+10 -9
@@ -13,19 +13,20 @@ class SqlMover
Notice::note('SqlMover', 'b'); Notice::note('SqlMover', 'b');
Notice::note('StatistikoPlayer', 'b');
$res = StatistikoEvent::pluck('match_id'); $res = StatistikoEvent::pluck('match_id');
foreach ($res as $match_id) { foreach ($res as $match_id) {
$has = StatistikoPlayer::where('match_id', $match_id)->first(); $has = StatistikoPlayer::where('match_id', (int) $match_id)->first();
if (!$has) if (!$has)
Notice::note('StatistikoPlayer missing ' . $match_id, 'b'); echo $match_id . "\n";
} }
$res = StatistikoPlayer::groupBy('match_id')->pluck('match_id'); Notice::note('StatistikoEvent', 'b');
foreach ($res as $match_id) { $res = StatistikoPlayer::groupBy('match_id')->pluck('match_id');
$has = StatistikoEvent::where('match_id', $match_id)->first(); foreach ($res as $match_id) {
$has = StatistikoEvent::where('match_id', (int) $match_id)->first();
if (!$has) if (!$has)
echo $match_id . "\n"; echo $match_id . "\n";
// Notice::note('StatistikoEvent missing ' . $match_id, 'b');
} }
Notice::note('done', 'bb', 1); Notice::note('done', 'bb', 1);