From 923dfdbaaa58d6778f0aaddf2d192b78d945ac88 Mon Sep 17 00:00:00 2001 From: Daniel Supernault Date: Thu, 6 Oct 2022 23:12:12 -0600 Subject: [PATCH] Add migration --- ...d_reblog_of_id_index_to_statuses_table.php | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 database/migrations/2022_10_07_045520_add_reblog_of_id_index_to_statuses_table.php diff --git a/database/migrations/2022_10_07_045520_add_reblog_of_id_index_to_statuses_table.php b/database/migrations/2022_10_07_045520_add_reblog_of_id_index_to_statuses_table.php new file mode 100644 index 000000000..85a055558 --- /dev/null +++ b/database/migrations/2022_10_07_045520_add_reblog_of_id_index_to_statuses_table.php @@ -0,0 +1,38 @@ +getDoctrineSchemaManager(); + if(array_key_exists('statuses_in_reply_or_reblog_index', $sc)) { + $table->dropIndex('statuses_in_reply_or_reblog_index'); + } + + $table->index('in_reply_to_id'); + $table->index('reblog_of_id'); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('statuses', function (Blueprint $table) { + // + }); + } +}