mirror of
https://github.com/koel/koel
synced 2024-11-10 06:34:14 +00:00
This reverts commit 89be90844e
.
This commit is contained in:
parent
febd953b05
commit
6f4809ebe2
3 changed files with 1 additions and 24 deletions
1
database/.gitignore
vendored
Normal file
1
database/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
*.sqlite
|
0
database/migrations/.gitkeep
Normal file
0
database/migrations/.gitkeep
Normal 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();
|
||||
});
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue