]> git.localhorst.tv Git - alttp.git/commitdiff
add jobs table
authorDaniel Karbach <daniel.karbach@localhorst.tv>
Tue, 15 Mar 2022 16:08:09 +0000 (17:08 +0100)
committerDaniel Karbach <daniel.karbach@localhorst.tv>
Tue, 15 Mar 2022 16:08:09 +0000 (17:08 +0100)
database/migrations/2022_03_15_160759_create_jobs_table.php [new file with mode: 0644]

diff --git a/database/migrations/2022_03_15_160759_create_jobs_table.php b/database/migrations/2022_03_15_160759_create_jobs_table.php
new file mode 100644 (file)
index 0000000..a786a89
--- /dev/null
@@ -0,0 +1,36 @@
+<?php
+
+use Illuminate\Database\Migrations\Migration;
+use Illuminate\Database\Schema\Blueprint;
+use Illuminate\Support\Facades\Schema;
+
+return new class 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');
+    }
+};