diff --git a/config/commands.php b/config/commands.php index 2c61697..00466a0 100644 --- a/config/commands.php +++ b/config/commands.php @@ -42,18 +42,11 @@ return [ */ 'add' => [ - \Illuminate\Queue\Console\BatchesTableCommand::class, \Illuminate\Queue\Console\ClearCommand::class, - \Illuminate\Queue\Console\FlushFailedCommand::class, - \Illuminate\Queue\Console\ForgetFailedCommand::class, - \Illuminate\Queue\Console\ListFailedCommand::class, \Illuminate\Queue\Console\MonitorCommand::class, \Illuminate\Queue\Console\PruneBatchesCommand::class, \Illuminate\Queue\Console\PruneFailedJobsCommand::class, - \Illuminate\Queue\Console\RestartCommand::class, \Illuminate\Queue\Console\RetryBatchCommand::class, - \Illuminate\Queue\Console\RetryCommand::class, - \Illuminate\Queue\Console\WorkCommand::class, ], /* diff --git a/database/migrations/2022_03_01_011855_create_job_batches_table.php b/database/migrations/2022_03_01_011855_create_job_batches_table.php new file mode 100644 index 0000000..226e640 --- /dev/null +++ b/database/migrations/2022_03_01_011855_create_job_batches_table.php @@ -0,0 +1,39 @@ +string('id')->primary(); + $table->string('name'); + $table->integer('total_jobs'); + $table->integer('pending_jobs'); + $table->integer('failed_jobs'); + $table->text('failed_job_ids'); + $table->mediumText('options')->nullable(); + $table->integer('cancelled_at')->nullable(); + $table->integer('created_at'); + $table->integer('finished_at')->nullable(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('job_batches'); + } +};