Revert "chore: change artist name DB type to text (fixes #879) (#1260)"

This reverts commit 89be90844e.
This commit is contained in:
Phan An 2020-11-14 19:17:51 +01:00
parent febd953b05
commit 6f4809ebe2
3 changed files with 1 additions and 24 deletions

1
database/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
*.sqlite

View file

View file

@ -1,24 +0,0 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
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']);
});
}
public function down(): void
{
Schema::table('artists', static function (Blueprint $table): void {
$table->string('name', 191)->change();
});
}
}