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']); + }); + } +};