diff --git a/framework/core/migrations/2015_02_24_000000_create_access_tokens_table.php b/framework/core/migrations/2015_02_24_000000_create_access_tokens_table.php index 9d123d0f2..dd904a93b 100644 --- a/framework/core/migrations/2015_02_24_000000_create_access_tokens_table.php +++ b/framework/core/migrations/2015_02_24_000000_create_access_tokens_table.php @@ -14,7 +14,7 @@ class CreateAccessTokensTable extends Migration { { Schema::create('access_tokens', function(Blueprint $table) { - $table->string('id'); + $table->string('id', 100); $table->integer('user_id')->unsigned(); }); } diff --git a/framework/core/migrations/2015_02_24_000000_create_activity_table.php b/framework/core/migrations/2015_02_24_000000_create_activity_table.php index 401847afa..a1b22d29b 100644 --- a/framework/core/migrations/2015_02_24_000000_create_activity_table.php +++ b/framework/core/migrations/2015_02_24_000000_create_activity_table.php @@ -17,7 +17,7 @@ class CreateActivityTable extends Migration { $table->increments('id'); $table->integer('user_id')->unsigned(); $table->integer('sender_id')->unsigned()->nullable(); - $table->string('type'); + $table->string('type', 100); $table->binary('data')->nullable(); $table->dateTime('time'); }); diff --git a/framework/core/migrations/2015_02_24_000000_create_config_table.php b/framework/core/migrations/2015_02_24_000000_create_config_table.php index b74c9f1c4..e3e7c3368 100644 --- a/framework/core/migrations/2015_02_24_000000_create_config_table.php +++ b/framework/core/migrations/2015_02_24_000000_create_config_table.php @@ -14,7 +14,7 @@ class CreateConfigTable extends Migration { { Schema::create('config', function(Blueprint $table) { - $table->string('key')->primary(); + $table->string('key', 100)->primary(); $table->binary('value')->nullable(); }); } diff --git a/framework/core/migrations/2015_02_24_000000_create_discussions_table.php b/framework/core/migrations/2015_02_24_000000_create_discussions_table.php index 791ab1aa1..97f8a5551 100644 --- a/framework/core/migrations/2015_02_24_000000_create_discussions_table.php +++ b/framework/core/migrations/2015_02_24_000000_create_discussions_table.php @@ -15,7 +15,7 @@ class CreateDiscussionsTable extends Migration { Schema::create('discussions', function(Blueprint $table) { $table->increments('id'); - $table->string('title'); + $table->string('title', 200); $table->integer('comments_count')->unsigned()->default(0); $table->integer('number_index')->unsigned()->default(0); diff --git a/framework/core/migrations/2015_02_24_000000_create_groups_table.php b/framework/core/migrations/2015_02_24_000000_create_groups_table.php index 44ec0710d..f787ac2de 100644 --- a/framework/core/migrations/2015_02_24_000000_create_groups_table.php +++ b/framework/core/migrations/2015_02_24_000000_create_groups_table.php @@ -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(); }); } diff --git a/framework/core/migrations/2015_02_24_000000_create_notifications_table.php b/framework/core/migrations/2015_02_24_000000_create_notifications_table.php index f2684931e..8d158e49a 100644 --- a/framework/core/migrations/2015_02_24_000000_create_notifications_table.php +++ b/framework/core/migrations/2015_02_24_000000_create_notifications_table.php @@ -17,8 +17,8 @@ class CreateNotificationsTable extends Migration { $table->increments('id'); $table->integer('user_id')->unsigned(); $table->integer('sender_id')->unsigned()->nullable(); - $table->string('type'); - $table->string('subject_type')->nullable(); + $table->string('type', 100); + $table->string('subject_type', 200)->nullable(); $table->integer('subject_id')->unsigned()->nullable(); $table->binary('data')->nullable(); $table->dateTime('time'); diff --git a/framework/core/migrations/2015_02_24_000000_create_posts_table.php b/framework/core/migrations/2015_02_24_000000_create_posts_table.php index 5457836a9..8ccfe3e3d 100644 --- a/framework/core/migrations/2015_02_24_000000_create_posts_table.php +++ b/framework/core/migrations/2015_02_24_000000_create_posts_table.php @@ -20,7 +20,7 @@ class CreatePostsTable extends Migration { $table->dateTime('time'); $table->integer('user_id')->unsigned()->nullable(); - $table->string('type')->nullable(); + $table->string('type', 100)->nullable(); $table->text('content')->nullable(); $table->text('content_html')->nullable(); diff --git a/framework/core/migrations/2015_02_24_000000_create_users_table.php b/framework/core/migrations/2015_02_24_000000_create_users_table.php index 4c0a5989a..7908afb19 100644 --- a/framework/core/migrations/2015_02_24_000000_create_users_table.php +++ b/framework/core/migrations/2015_02_24_000000_create_users_table.php @@ -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();