From f731cbadc8847bdd1a81f06560181444d2c67f75 Mon Sep 17 00:00:00 2001 From: andyhethers <114071314+andyhethers@users.noreply.github.com> Date: Mon, 25 Sep 2023 17:11:00 +0100 Subject: [PATCH] Add indexes to sessions table (#978) Refs: https://github.com/laravel/framework/commit/113ade3d557328d0e9b175bb4047cb1c58d33194 --- ...9_24_000028_Db_System_Sessions_Indexes.php | 23 +++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 modules/system/database/migrations/2023_09_24_000028_Db_System_Sessions_Indexes.php diff --git a/modules/system/database/migrations/2023_09_24_000028_Db_System_Sessions_Indexes.php b/modules/system/database/migrations/2023_09_24_000028_Db_System_Sessions_Indexes.php new file mode 100644 index 0000000000..2eecc3c6d3 --- /dev/null +++ b/modules/system/database/migrations/2023_09_24_000028_Db_System_Sessions_Indexes.php @@ -0,0 +1,23 @@ +index(['last_activity']); + $table->index(['user_id']); + }); + } + + public function down() + { + Schema::table('sessions', function ($table) { + $table->dropIndex(['last_activity']); + $table->dropIndex(['user_id']); + }); + } +};