diff --git a/database/migrations/2026_06_26_130000_create_cache_table.php b/database/migrations/2026_06_26_130000_create_cache_table.php new file mode 100644 index 0000000..45aa5d9 --- /dev/null +++ b/database/migrations/2026_06_26_130000_create_cache_table.php @@ -0,0 +1,38 @@ +string('key')->primary(); + $table->mediumText('value'); + $table->integer('expiration'); + }); + } + + if (!Schema::hasTable('cache_locks')) { + Schema::create('cache_locks', function (Blueprint $table) { + $table->string('key')->primary(); + $table->string('owner'); + $table->integer('expiration'); + }); + } + } + + public function down(): void + { + Schema::dropIfExists('cache'); + Schema::dropIfExists('cache_locks'); + } +};