From 41530f0be351c9ca89720b55a74cebfb521099a1 Mon Sep 17 00:00:00 2001 From: Nicolaas / Sunn Side Up Date: Wed, 5 Jan 2022 09:40:12 +1300 Subject: [PATCH] MINOR: adding index to PermissionRoleCode.Code for faster filtering and sorting --- src/Security/PermissionRoleCode.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Security/PermissionRoleCode.php b/src/Security/PermissionRoleCode.php index ed818242e..5176990e3 100644 --- a/src/Security/PermissionRoleCode.php +++ b/src/Security/PermissionRoleCode.php @@ -23,6 +23,10 @@ class PermissionRoleCode extends DataObject ]; private static $table_name = "PermissionRoleCode"; + + private static $indexes = [ + "Code" => true, + ]; public function validate() {