diff --git a/migrations/2020_03_19_134512_change_discussions_default_comment_count.php b/migrations/2020_03_19_134512_change_discussions_default_comment_count.php new file mode 100644 index 000000000..7d5b85179 --- /dev/null +++ b/migrations/2020_03_19_134512_change_discussions_default_comment_count.php @@ -0,0 +1,25 @@ + function (Builder $schema) { + $schema->table('discussions', function (Blueprint $table) { + $table->integer('comment_count')->default(1)->change(); + }); + }, + + 'down' => function (Builder $schema) { + $schema->table('discussions', function (Blueprint $table) { + $table->integer('comment_count')->default(0)->change(); + }); + } +];