mirror of
https://github.com/flarum/core.git
synced 2025-08-11 02:44:04 +02:00
Explicitly specify length for string columns.
The missing length attributes caused problems with too long indices.
This commit is contained in:
@@ -14,10 +14,10 @@ class CreateGroupsTable extends Migration
|
||||
{
|
||||
Schema::create('groups', function (Blueprint $table) {
|
||||
$table->increments('id');
|
||||
$table->string('name_singular');
|
||||
$table->string('name_plural');
|
||||
$table->string('color')->nullable();
|
||||
$table->string('icon')->nullable();
|
||||
$table->string('name_singular', 100);
|
||||
$table->string('name_plural', 100);
|
||||
$table->string('color', 20)->nullable();
|
||||
$table->string('icon', 100)->nullable();
|
||||
});
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user