From 5b90bec1b32ce76b441d8879dd14ca44ee526c1d Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Wed, 17 Oct 2018 18:11:51 -0600 Subject: [PATCH] Add new migration --- ...update_follower_table_add_remote_flags.php | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 database/migrations/2018_10_17_233623_update_follower_table_add_remote_flags.php diff --git a/database/migrations/2018_10_17_233623_update_follower_table_add_remote_flags.php b/database/migrations/2018_10_17_233623_update_follower_table_add_remote_flags.php new file mode 100644 index 000000000..7838179de --- /dev/null +++ b/database/migrations/2018_10_17_233623_update_follower_table_add_remote_flags.php @@ -0,0 +1,34 @@ +boolean('local_profile')->default(true)->index()->after('following_id'); + $table->boolean('local_following')->default(true)->index()->after('local_profile'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('followers', function (Blueprint $table) { + $table->dropColumn('local_profile'); + $table->dropColumn('local_following'); + }); + } +}