add backup success sync

This commit is contained in:
arifal hidayat
2025-08-08 00:12:22 +07:00
parent 3902a486f7
commit 588e3ad5e2
7 changed files with 37715 additions and 19 deletions

View File

@@ -3,11 +3,12 @@
namespace App\Console\Commands;
use App\Models\PbgTask;
use App\Models\PbgTaskAttachment;
use App\Models\PbgTaskDetail;
use App\Models\PbgTaskIndexIntegrations;
use App\Models\PbgTaskPrasarana;
use App\Models\PbgTaskRetributions;
use DB;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\DB;
class TruncatePBGTable extends Command
{
@@ -32,9 +33,10 @@ class TruncatePBGTable extends Command
{
DB::statement('SET FOREIGN_KEY_CHECKS=0;');
PbgTask::truncate();
PbgTaskAttachment::truncate();
PbgTaskRetributions::truncate();
PbgTaskDetail::truncate();
PbgTaskIndexIntegrations::truncate();
PbgTaskPrasarana::truncate();
DB::statement('SET FOREIGN_KEY_CHECKS=1;');
}
}