diff --git a/database/migrations/2026_09_02_000001_add_expiration_index_to_cache_table.php b/database/migrations/2026_09_02_000001_add_expiration_index_to_cache_table.php new file mode 100644 index 000000000..0893b75a1 --- /dev/null +++ b/database/migrations/2026_09_02_000001_add_expiration_index_to_cache_table.php @@ -0,0 +1,30 @@ +index('expiration'); + }); + + Schema::table('cache_locks', function (Blueprint $table) { + $table->index('expiration'); + }); + } + + public function down() + { + Schema::table('cache', function (Blueprint $table) { + $table->dropIndex(['expiration']); + }); + + Schema::table('cache_locks', function (Blueprint $table) { + $table->dropIndex(['expiration']); + }); + } +};