fix: drop artist name index before migration

This commit is contained in:
Phan An 2021-12-10 14:19:29 +01:00
parent 8007ad0c0d
commit 4d686e25cb
No known key found for this signature in database
GPG key ID: A81E4477F0BB6FDC

View file

@ -8,6 +8,10 @@ class IncreaseStringColumnsLength extends Migration
{ {
public function up(): void public function up(): void
{ {
Schema::table('artists', static function (Blueprint $table): void {
$table->dropIndex('artists_name_unique');
});
Schema::table('artists', static function (Blueprint $table): void { Schema::table('artists', static function (Blueprint $table): void {
$table->string('name', pow(2, 16) - 32)->change(); $table->string('name', pow(2, 16) - 32)->change();
}); });