diff --git a/database/migrations/2020_11_14_151336_change_artist_name_length.php b/database/migrations/2020_11_14_151336_change_artist_name_length.php index 0a77adc0..8886d998 100644 --- a/database/migrations/2020_11_14_151336_change_artist_name_length.php +++ b/database/migrations/2020_11_14_151336_change_artist_name_length.php @@ -9,7 +9,9 @@ class ChangeArtistNameLength extends Migration public function up(): void { Schema::table('artists', static function (Blueprint $table): void { + $table->dropIndex('artists_name_unique'); $table->text('name')->change(); + $table->unique(['name']); }); }