24 lines
525 B
PHP
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);
|
|
}
|
|
}
|