diff --git a/src/database/migrations/2021_08_27_105020_drop_greylist_connect_index.php b/src/database/migrations/2021_08_27_105020_drop_greylist_connect_index.php new file mode 100644 --- /dev/null +++ b/src/database/migrations/2021_08_27_105020_drop_greylist_connect_index.php @@ -0,0 +1,56 @@ +dropIndex( + 'ssrnn_idx' + ); + } + ); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table( + 'greylist_connect', + function (Blueprint $table) { + /** + * Index for recipient request. + */ + $table->index( + [ + 'sender_local', + 'sender_domain', + 'recipient_hash', + 'net_id', + 'net_type' + ], + 'ssrnn_idx' + ); + } + ); + } +}