1
0
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:
Franz Liedke
2015-05-19 00:20:36 +02:00
parent 7e4693a855
commit 26c2761cbf
8 changed files with 16 additions and 16 deletions

View File

@@ -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();