diff --git a/database/migrations/2021_02_10_114626_create_jobs_table.php b/database/migrations/2021_02_10_114626_create_jobs_table.php new file mode 100644 index 0000000000000000000000000000000000000000..1be9e8a80eb17425f2ecb9a887625cb3f706790b --- /dev/null +++ b/database/migrations/2021_02_10_114626_create_jobs_table.php @@ -0,0 +1,36 @@ +<?php + +use Illuminate\Database\Migrations\Migration; +use Illuminate\Database\Schema\Blueprint; +use Illuminate\Support\Facades\Schema; + +class CreateJobsTable extends Migration +{ + /** + * Run the migrations. + * + * @return void + */ + public function up() + { + Schema::create('jobs', function (Blueprint $table) { + $table->bigIncrements('id'); + $table->string('queue')->index(); + $table->longText('payload'); + $table->unsignedTinyInteger('attempts'); + $table->unsignedInteger('reserved_at')->nullable(); + $table->unsignedInteger('available_at'); + $table->unsignedInteger('created_at'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::dropIfExists('jobs'); + } +} diff --git a/env.docker b/env.docker index 34a14bb2ee242b847a2c298cc3dc60f7172ff6d5..7787c86ae8e87d59bfe42b492760bd0eed921a07 100644 --- a/env.docker +++ b/env.docker @@ -17,7 +17,7 @@ DB_CONNECTION=sqlite BROADCAST_DRIVER=log CACHE_DRIVER=file -QUEUE_CONNECTION=sync +QUEUE_CONNECTION=database SESSION_DRIVER=file SESSION_LIFETIME=120