save updates
This commit is contained in:
1 parent
3671902fe7
commit
046407df18
36 files changed
+261
-305
No files matched your search
@@ -0,0 +1,23 @@
|
||||
<?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);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user