diff --git a/database/migrations/2024_04_11_150130_create_jobs_table.php b/database/migrations/2024_04_11_150130_create_jobs_table.php new file mode 100644 index 00000000..53c22929 --- /dev/null +++ b/database/migrations/2024_04_11_150130_create_jobs_table.php @@ -0,0 +1,34 @@ +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. + */ + public function down(): void + { + Schema::dropIfExists('jobs'); + } +}; diff --git a/database/migrations/2024_04_12_095010_create_cache_table.php b/database/migrations/2024_04_12_095010_create_cache_table.php new file mode 100644 index 00000000..960e12bf --- /dev/null +++ b/database/migrations/2024_04_12_095010_create_cache_table.php @@ -0,0 +1,37 @@ +string('key')->primary(); + $table->mediumText('value'); + $table->integer('expiration'); + }); + + Schema::create('cache_locks', function (Blueprint $table) { + $table->string('key')->primary(); + $table->string('owner'); + $table->integer('expiration'); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('cache'); + Schema::dropIfExists('cache_locks'); + } +};