Files
2026-10-04 15:25:03 +02:00

24 lines
525 B
PHP

<?php
namespace App\Console\Commands\Services\Tasks;
use App\Console\Commands\Nuh;
use App\Utilities\Notice;
use Illuminate\Support\Facades\DB;
class DBConsistencyChecker
{
public static function checkEvents()
{
$debug = Nuh::$options['d'] ?? 0;
if ($debug) {
Notice::note('DB Consistency Checker', 'b');
}
$res = DB::raw('select * from event_bookmakers where not exists (select * from events where events.id = event_bookmakers.event_id)');
dd($res);
}
}