mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge pull request #10190 from sunnysideup/patch-21
ENH Add index to PermissionRoleCode.Code for filtering + sorting
This commit is contained in:
commit
7b19299fbe
@ -24,6 +24,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()
|
||||||
{
|
{
|
||||||
$result = parent::validate();
|
$result = parent::validate();
|
||||||
|
Loading…
Reference in New Issue
Block a user