From 9914c61c65ae76230fe5d0b8911ec7671fe0416c Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Sun, 31 Mar 2019 13:23:41 -0600 Subject: [PATCH] Add new migration --- ...16_add_replies_count_to_statuses_table.php | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 database/migrations/2019_03_31_191216_add_replies_count_to_statuses_table.php diff --git a/database/migrations/2019_03_31_191216_add_replies_count_to_statuses_table.php b/database/migrations/2019_03_31_191216_add_replies_count_to_statuses_table.php new file mode 100644 index 00000000..2625b984 --- /dev/null +++ b/database/migrations/2019_03_31_191216_add_replies_count_to_statuses_table.php @@ -0,0 +1,34 @@ +unsignedInteger('reply_count')->nullable(); + $table->boolean('comments_disabled')->default(false); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('statuses', function (Blueprint $table) { + $table->dropColumn('reply_count'); + $table->dropColumn('comments_disabled'); + }); + } +}