diff --git a/.env.example b/.env.example index 89fd03b..44a21e0 100644 --- a/.env.example +++ b/.env.example @@ -20,7 +20,7 @@ DB_MONGO_PASSWORD=password BROADCAST_DRIVER=log CACHE_DRIVER=file -QUEUE_CONNECTION=sync +QUEUE_CONNECTION=database SESSION_DRIVER=file SESSION_LIFETIME=120 diff --git a/database/migrations/2021_08_24_143459_create_failed_jobs_table.php b/database/migrations/2021_08_24_143459_create_failed_jobs_table.php new file mode 100644 index 0000000..6aa6d74 --- /dev/null +++ b/database/migrations/2021_08_24_143459_create_failed_jobs_table.php @@ -0,0 +1,36 @@ +id(); + $table->string('uuid')->unique(); + $table->text('connection'); + $table->text('queue'); + $table->longText('payload'); + $table->longText('exception'); + $table->timestamp('failed_at')->useCurrent(); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('failed_jobs'); + } +}