Merge pull request #10190 from sunnysideup/patch-21

ENH Add index to PermissionRoleCode.Code for filtering + sorting
This commit is contained in:
Michal Kleiner 2022-01-15 10:28:38 +13:00 committed by GitHub
commit 7b19299fbe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,6 +23,10 @@ class PermissionRoleCode extends DataObject
]; ];
private static $table_name = "PermissionRoleCode"; private static $table_name = "PermissionRoleCode";
private static $indexes = [
"Code" => true,
];
public function validate() public function validate()
{ {