From 882ee804245462d1db11f87e0770da8447ac2b9a Mon Sep 17 00:00:00 2001 From: Brady Wetherington Date: Tue, 16 Sep 2025 11:54:24 +0100 Subject: [PATCH] Add new index to users over deleted_at and location_id --- ...ate_users_deleted_at_location_id_index.php | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 database/migrations/2025_09_16_104604_create_users_deleted_at_location_id_index.php diff --git a/database/migrations/2025_09_16_104604_create_users_deleted_at_location_id_index.php b/database/migrations/2025_09_16_104604_create_users_deleted_at_location_id_index.php new file mode 100644 index 0000000000..05b8474a4b --- /dev/null +++ b/database/migrations/2025_09_16_104604_create_users_deleted_at_location_id_index.php @@ -0,0 +1,31 @@ +index(['deleted_at','location_id']); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::table('users', function (Blueprint $table) { + $table->dropIndex(['deleted_at','location_id']); + }); + } +};