From bbbc7cc05e6c1a731b9f7e6def29ac731c1304fa Mon Sep 17 00:00:00 2001 From: Annika Backstrom Date: Sun, 26 May 2024 17:43:40 +0100 Subject: [PATCH] Fix cache table for Telescope dump() --- .../2024_05_26_163238_cache_unique_key.php | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 database/migrations/2024_05_26_163238_cache_unique_key.php diff --git a/database/migrations/2024_05_26_163238_cache_unique_key.php b/database/migrations/2024_05_26_163238_cache_unique_key.php new file mode 100644 index 0000000..279320c --- /dev/null +++ b/database/migrations/2024_05_26_163238_cache_unique_key.php @@ -0,0 +1,32 @@ +unique('key'); + } + ); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::table( + 'cache', function (Blueprint $table) { + $table->dropUnique('cache_key_unique'); + } + ); + } +};