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) { + // + }); + } +}