This commit is contained in:
salam committed 2026-07-26 06:47:39 +02:00
1 parent bf48caa395
commit 4c29a38bcd
2 files changed
+26 -10

No files matched your search

@@ -3,6 +3,7 @@
namespace App\Console\Commands\Grapper\Sofascore;
use App\Models\StatistikoEvent;
use App\Models\StatistikoPlayer;
use App\Utilities\Notice;
class SqlMover
@@ -10,18 +11,22 @@ class SqlMover
public static function run()
{
// $ligas = [649, 242, 20, 40, 325, 41];
$ligas = [5, 9, 19, 26, 13, 99];
// $ligas = [5, 9, 19, 26, 13, 99];
$ligas = [22, 26, 28, 29, 33, 51];
Notice::note('SqlMover', 'b');
foreach ($ligas as $liga_id) {
$res = StatistikoEvent::where('league_id', $liga_id)->pluck('match_id');
Notice::note($liga_id, 'b');
dd($res);
$res = StatistikoEvent::where('league_id', $liga_id)
->where('season', '2026')
->pluck('match_id');
foreach ($res as $match_id) {
dd($match_id);
StatistikoEvent::where('match_id', $match_id)->delete();
StatistikoPlayer::where('match_id', $match_id)->delete();
}
}