From c37cd439859d9b08950b273524f0f0c2fa44f976 Mon Sep 17 00:00:00 2001 From: Vincent Boon Date: Thu, 16 Oct 2025 08:33:31 +0200 Subject: [PATCH 1/2] Add indexes --- ..._magento_bulk_request_operations_table.php | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 database/migrations/2025_10_16_083000_add_indexes_to_magento_bulk_request_operations_table.php diff --git a/database/migrations/2025_10_16_083000_add_indexes_to_magento_bulk_request_operations_table.php b/database/migrations/2025_10_16_083000_add_indexes_to_magento_bulk_request_operations_table.php new file mode 100644 index 0000000..6b619a6 --- /dev/null +++ b/database/migrations/2025_10_16_083000_add_indexes_to_magento_bulk_request_operations_table.php @@ -0,0 +1,24 @@ +index('status'); + $table->index(['status', 'created_at']); + }); + } + + public function down(): void + { + Schema::table('magento_bulk_request_operations', function (Blueprint $table): void { + $table->dropIndex('status'); + $table->dropIndex(['status', 'created_at']); + }); + } +}; From d54da4a67c2a8604944e4f64b9d7d588e8c939b5 Mon Sep 17 00:00:00 2001 From: Vincent Boon Date: Thu, 16 Oct 2025 08:35:34 +0200 Subject: [PATCH 2/2] Update database/migrations/2025_10_16_083000_add_indexes_to_magento_bulk_request_operations_table.php Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> --- ...000_add_indexes_to_magento_bulk_request_operations_table.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/database/migrations/2025_10_16_083000_add_indexes_to_magento_bulk_request_operations_table.php b/database/migrations/2025_10_16_083000_add_indexes_to_magento_bulk_request_operations_table.php index 6b619a6..eb1a9c1 100644 --- a/database/migrations/2025_10_16_083000_add_indexes_to_magento_bulk_request_operations_table.php +++ b/database/migrations/2025_10_16_083000_add_indexes_to_magento_bulk_request_operations_table.php @@ -17,7 +17,7 @@ public function up(): void public function down(): void { Schema::table('magento_bulk_request_operations', function (Blueprint $table): void { - $table->dropIndex('status'); + $table->dropIndex(['status']); $table->dropIndex(['status', 'created_at']); }); }