From 8bf58f3daae1f1698715183653191219cff71c29 Mon Sep 17 00:00:00 2001 From: Deon George Date: Sun, 21 Apr 2024 15:19:38 +1000 Subject: [PATCH] Added performance indexes for echomails/echoareas --- .../2024_04_21_151040_echomail_indexes.php | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 database/migrations/2024_04_21_151040_echomail_indexes.php diff --git a/database/migrations/2024_04_21_151040_echomail_indexes.php b/database/migrations/2024_04_21_151040_echomail_indexes.php new file mode 100644 index 0000000..2bf0f01 --- /dev/null +++ b/database/migrations/2024_04_21_151040_echomail_indexes.php @@ -0,0 +1,38 @@ +index(['echoarea_id']); + $table->index(['fftn_id']); + }); + + Schema::table('echoareas', function (Blueprint $table) { + $table->index(['domain_id']); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::table('echoareas', function (Blueprint $table) { + $table->dropIndex(['domain_id']); + }); + + Schema::table('echomails', function (Blueprint $table) { + $table->dropIndex(['echoarea_id']); + $table->dropIndex(['fftn_id']); + }); + } +};