#!/bin/bash
cd /Users/oguzcan/PhpstormProjects/football-service
P() { /Users/oguzcan/.config/herd-lite/bin/php -d memory_limit=2G artisan "$@"; }
for L in eng1 esp1 ger1; do P football:backfill --league=$L --details-from=2025; done
P football:backfill --league=tur2 --no-details
P tinker --execute='App\Models\Fixture::where("league_id", App\Models\League::byCode("tur1")->id)->where("season", ">=", 2025)->update(["details_synced_at" => null]);'
P football:backfill --league=tur1 --from=2026 --details-from=2025
echo "BACKFILL DONE $(date)"
