From dd1d7d78fe7817c870ea0efa0adcd9b64c5345d1 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Fri, 7 Oct 2022 01:50:55 -0600 Subject: [PATCH] Add migrations --- ...add_status_id_index_to_bookmarks_table.php | 31 +++++++++++++++++ ...atus_id_index_to_direct_messages_table.php | 31 +++++++++++++++++ ..._add_status_id_index_to_mentions_table.php | 31 +++++++++++++++++ ...07_073337_add_indexes_to_reports_table.php | 33 +++++++++++++++++++ 4 files changed, 126 insertions(+) create mode 100644 database/migrations/2022_10_07_072311_add_status_id_index_to_bookmarks_table.php create mode 100644 database/migrations/2022_10_07_072555_add_status_id_index_to_direct_messages_table.php create mode 100644 database/migrations/2022_10_07_072859_add_status_id_index_to_mentions_table.php create mode 100644 database/migrations/2022_10_07_073337_add_indexes_to_reports_table.php diff --git a/database/migrations/2022_10_07_072311_add_status_id_index_to_bookmarks_table.php b/database/migrations/2022_10_07_072311_add_status_id_index_to_bookmarks_table.php new file mode 100644 index 000000000..d04fd9333 --- /dev/null +++ b/database/migrations/2022_10_07_072311_add_status_id_index_to_bookmarks_table.php @@ -0,0 +1,31 @@ +index('status_id'); + $table->index('profile_id'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + // + } +} diff --git a/database/migrations/2022_10_07_072555_add_status_id_index_to_direct_messages_table.php b/database/migrations/2022_10_07_072555_add_status_id_index_to_direct_messages_table.php new file mode 100644 index 000000000..cc66bb77f --- /dev/null +++ b/database/migrations/2022_10_07_072555_add_status_id_index_to_direct_messages_table.php @@ -0,0 +1,31 @@ +index('status_id'); + $table->index('group_message'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + // + } +} diff --git a/database/migrations/2022_10_07_072859_add_status_id_index_to_mentions_table.php b/database/migrations/2022_10_07_072859_add_status_id_index_to_mentions_table.php new file mode 100644 index 000000000..91ad7a594 --- /dev/null +++ b/database/migrations/2022_10_07_072859_add_status_id_index_to_mentions_table.php @@ -0,0 +1,31 @@ +index('status_id'); + $table->index('profile_id'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + // + } +} diff --git a/database/migrations/2022_10_07_073337_add_indexes_to_reports_table.php b/database/migrations/2022_10_07_073337_add_indexes_to_reports_table.php new file mode 100644 index 000000000..cfe7d5a7e --- /dev/null +++ b/database/migrations/2022_10_07_073337_add_indexes_to_reports_table.php @@ -0,0 +1,33 @@ +index('user_id'); + $table->index('profile_id'); + $table->index('object_id'); + $table->index('object_type'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + // + } +}