From f32eabdf19a0fe08088852c356aefd9246a0a590 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Thu, 25 May 2023 00:01:50 -0600 Subject: [PATCH] Add migration --- ...08_103817_add_index_to_followers_table.php | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 database/migrations/2022_01_08_103817_add_index_to_followers_table.php diff --git a/database/migrations/2022_01_08_103817_add_index_to_followers_table.php b/database/migrations/2022_01_08_103817_add_index_to_followers_table.php new file mode 100644 index 000000000..202aafbcb --- /dev/null +++ b/database/migrations/2022_01_08_103817_add_index_to_followers_table.php @@ -0,0 +1,33 @@ +index('profile_id'); + $table->index('following_id'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('followers', function (Blueprint $table) { + // + }); + } +}