mirror of
https://github.com/koel/koel
synced 2025-02-17 13:58:28 +00:00
feat: increase char limit for name fields (#1391)
This commit is contained in:
parent
aedff9cf6e
commit
ed92eb2fde
1 changed files with 27 additions and 0 deletions
|
@ -0,0 +1,27 @@
|
|||
<?php
|
||||
|
||||
use Illuminate\Database\Migrations\Migration;
|
||||
use Illuminate\Database\Schema\Blueprint;
|
||||
use Illuminate\Support\Facades\Schema;
|
||||
|
||||
class IncreaseStringColumnsLength extends Migration
|
||||
{
|
||||
public function up(): void
|
||||
{
|
||||
Schema::table('artists', static function (Blueprint $table): void {
|
||||
$table->string('name', pow(2, 16) - 32)->change();
|
||||
});
|
||||
|
||||
Schema::table('albums', static function (Blueprint $table): void {
|
||||
$table->string('name', pow(2, 16) - 32)->change();
|
||||
});
|
||||
|
||||
Schema::table('playlists', static function (Blueprint $table): void {
|
||||
$table->string('name', pow(2, 16) - 32)->change();
|
||||
});
|
||||
|
||||
Schema::table('songs', static function (Blueprint $table): void {
|
||||
$table->string('title', pow(2, 16) - 32)->change();
|
||||
});
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue