Skip to content

Commit 9ff54b7

Browse files
committed
Fixes test suite
1 parent f1124e3 commit 9ff54b7

File tree

1 file changed

+14
-12
lines changed

1 file changed

+14
-12
lines changed

tests/Watchers/BatchWatcherTest.php

+14-12
Original file line numberDiff line numberDiff line change
@@ -90,18 +90,20 @@ private function createJobsTable(): void
9090
});
9191
}
9292

93-
Schema::create('job_batches', function ($table) {
94-
$table->string('id')->primary();
95-
$table->string('name');
96-
$table->integer('total_jobs');
97-
$table->integer('pending_jobs');
98-
$table->integer('failed_jobs');
99-
$table->text('failed_job_ids');
100-
$table->text('options')->nullable();
101-
$table->integer('cancelled_at')->nullable();
102-
$table->integer('created_at');
103-
$table->integer('finished_at')->nullable();
104-
});
93+
if (! Schema::hasTable('job_batches')) {
94+
Schema::create('job_batches', function ($table) {
95+
$table->string('id')->primary();
96+
$table->string('name');
97+
$table->integer('total_jobs');
98+
$table->integer('pending_jobs');
99+
$table->integer('failed_jobs');
100+
$table->text('failed_job_ids');
101+
$table->text('options')->nullable();
102+
$table->integer('cancelled_at')->nullable();
103+
$table->integer('created_at');
104+
$table->integer('finished_at')->nullable();
105+
});
106+
}
105107
}
106108
}
107109

0 commit comments

Comments
 (0)