Fix cache table for Telescope dump()

This commit is contained in:
Annika Backstrom 2024-05-26 17:43:40 +01:00
parent bf138b8e2b
commit bbbc7cc05e
Signed by: annika
GPG Key ID: 3561F004DE1D9AFE

View File

@ -0,0 +1,32 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
/**
* Run the migrations.
*/
public function up(): void
{
Schema::table(
'cache', function (Blueprint $table) {
$table->unique('key');
}
);
}
/**
* Reverse the migrations.
*/
public function down(): void
{
Schema::table(
'cache', function (Blueprint $table) {
$table->dropUnique('cache_key_unique');
}
);
}
};