diff --git a/database/migrations/2016_03_25_135800_add_text_html_to_posts.php b/database/migrations/2016_03_25_135800_add_text_html_to_posts.php index 5538559..60f65c2 100644 --- a/database/migrations/2016_03_25_135800_add_text_html_to_posts.php +++ b/database/migrations/2016_03_25_135800_add_text_html_to_posts.php @@ -13,7 +13,7 @@ class AddTextHtmlToPosts extends Migration public function up() { Schema::table('posts', function (Blueprint $table) { - $table->text('text_html'); + $table->text('text_html')->default(''); }); } diff --git a/database/migrations/2016_05_18_134804_add_avatar_to_users_table.php b/database/migrations/2016_05_18_134804_add_avatar_to_users_table.php index 9f29938..c52dd44 100644 --- a/database/migrations/2016_05_18_134804_add_avatar_to_users_table.php +++ b/database/migrations/2016_05_18_134804_add_avatar_to_users_table.php @@ -13,7 +13,7 @@ class AddAvatarToUsersTable extends Migration public function up() { Schema::table('users', function (Blueprint $table) { - $table->string('avatar'); + $table->string('avatar')->default(''); }); }