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']); + }); + } +};