Fix cache table for Telescope dump()
This commit is contained in:
parent
bf138b8e2b
commit
bbbc7cc05e
32
database/migrations/2024_05_26_163238_cache_unique_key.php
Normal file
32
database/migrations/2024_05_26_163238_cache_unique_key.php
Normal 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');
|
||||
}
|
||||
);
|
||||
}
|
||||
};
|
Loading…
Reference in New Issue
Block a user