From 6b0a1ab3fb2a8343236b96573ef8fe7bf34a870b Mon Sep 17 00:00:00 2001 From: Brady Wetherington Date: Tue, 12 Apr 2022 20:11:25 +0100 Subject: [PATCH] Backport the license index fix from Develop onto the v5 branch --- ..._add_license_id_index_to_license_seats.php | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 database/migrations/2022_01_10_182548_add_license_id_index_to_license_seats.php diff --git a/database/migrations/2022_01_10_182548_add_license_id_index_to_license_seats.php b/database/migrations/2022_01_10_182548_add_license_id_index_to_license_seats.php new file mode 100644 index 0000000000..0eb0dfc463 --- /dev/null +++ b/database/migrations/2022_01_10_182548_add_license_id_index_to_license_seats.php @@ -0,0 +1,32 @@ +index(['license_id']); + }); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + Schema::table('license_seats', function (Blueprint $table) { + $table->dropIndex(['license_id']); + }); + } +}