diff --git a/migrations/2019_07_09_000002_add_votes_and_hotness_to_discussions.php b/migrations/2019_07_09_000002_add_votes_and_hotness_to_discussions.php index 9fc907c7..8babda28 100755 --- a/migrations/2019_07_09_000002_add_votes_and_hotness_to_discussions.php +++ b/migrations/2019_07_09_000002_add_votes_and_hotness_to_discussions.php @@ -19,8 +19,8 @@ } $schema->table('discussions', function (Blueprint $table) { - $table->integer('votes'); - $table->float('hotness', 10, 4); + $table->integer('votes')->default(0); + $table->float('hotness', 10, 4)->default(0); }); }, 'down' => function (Builder $schema) {