From 479a3540ecb8a61a7b7c29902bfb1696d4bb9081 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Fri, 5 Jul 2024 14:04:52 +0200 Subject: [PATCH] remove tag name uniqueness --- ...05_120217_remove_unique_from_tag_names.php | 28 +++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 database/migrations/2024_07_05_120217_remove_unique_from_tag_names.php diff --git a/database/migrations/2024_07_05_120217_remove_unique_from_tag_names.php b/database/migrations/2024_07_05_120217_remove_unique_from_tag_names.php new file mode 100644 index 000000000..301de814b --- /dev/null +++ b/database/migrations/2024_07_05_120217_remove_unique_from_tag_names.php @@ -0,0 +1,28 @@ +dropUnique(['name']); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::table('tags', function (Blueprint $table) { + $table->unique(['name']); + }); + } +};