mirror of
https://github.com/flarum/core.git
synced 2025-08-12 11:24:30 +02:00
Explicitly specify length for string columns.
The missing length attributes caused problems with too long indices.
This commit is contained in:
@@ -15,15 +15,15 @@ class CreateUsersTable extends Migration {
|
||||
Schema::create('users', function(Blueprint $table)
|
||||
{
|
||||
$table->increments('id');
|
||||
$table->string('username')->unique();
|
||||
$table->string('email')->unique();
|
||||
$table->string('username', 100)->unique();
|
||||
$table->string('email', 150)->unique();
|
||||
$table->boolean('is_confirmed')->default(0);
|
||||
$table->string('confirmation_token')->nullable();
|
||||
$table->string('confirmation_token', 50)->nullable();
|
||||
$table->boolean('is_activated')->default(0);
|
||||
$table->string('password');
|
||||
$table->string('password', 100);
|
||||
$table->text('bio')->nullable();
|
||||
$table->text('bio_html')->nullable();
|
||||
$table->string('avatar_path')->nullable();
|
||||
$table->string('avatar_path', 100)->nullable();
|
||||
$table->binary('preferences')->nullable();
|
||||
$table->dateTime('join_time')->nullable();
|
||||
$table->dateTime('last_seen_time')->nullable();
|
||||
|
Reference in New Issue
Block a user