From 34fd01d73b58005e826cc72b7bdf4959abfeea04 Mon Sep 17 00:00:00 2001 From: Tomiwa Ibiwoye Date: Sun, 15 May 2022 02:36:21 +0100 Subject: [PATCH] Corrects the use of "failed_jobs" instead of "job_batches" in BatchedTableCommand in comments and BatchedTableCommand::createBaseMigration()'s default value for $table parameter. --- src/Illuminate/Queue/Console/BatchesTableCommand.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Illuminate/Queue/Console/BatchesTableCommand.php b/src/Illuminate/Queue/Console/BatchesTableCommand.php index 1edee033e483..8d482796e402 100644 --- a/src/Illuminate/Queue/Console/BatchesTableCommand.php +++ b/src/Illuminate/Queue/Console/BatchesTableCommand.php @@ -36,7 +36,7 @@ class BatchesTableCommand extends Command protected $composer; /** - * Create a new failed queue jobs table command instance. + * Create a new batched queue jobs table command instance. * * @param \Illuminate\Filesystem\Filesystem $files * @param \Illuminate\Support\Composer $composer @@ -74,7 +74,7 @@ public function handle() * @param string $table * @return string */ - protected function createBaseMigration($table = 'failed_jobs') + protected function createBaseMigration($table = 'job_batches') { return $this->laravel['migration.creator']->create( 'create_'.$table.'_table', $this->laravel->databasePath().'/migrations' @@ -82,7 +82,7 @@ protected function createBaseMigration($table = 'failed_jobs') } /** - * Replace the generated migration with the failed job table stub. + * Replace the generated migration with the batches job table stub. * * @param string $path * @param string $table