Add checks for job_batches

This commit is contained in:
David Bomba 2025-01-30 20:30:23 +11:00
parent f52228d1a1
commit 2a985d581c
1 changed files with 15 additions and 12 deletions

View File

@ -12,6 +12,8 @@ return new class extends Migration
public function up(): void
{
if (!Schema::hasTable('job_batches')) {
Schema::create('job_batches', function (Blueprint $table) {
$table->string('id')->primary();
$table->string('name');
@ -24,6 +26,7 @@ return new class extends Migration
$table->integer('created_at');
$table->integer('finished_at')->nullable();
});
}
\App\Models\CompanyGateway::withTrashed()->where('gateway_key','b9886f9257f0c6ee7c302f1c74475f6c')
->cursor()