Add db index on PublishDate

This commit is contained in:
Stig Lindqvist 2018-11-14 07:42:49 +13:00 committed by GitHub
parent 0189bcbbb9
commit 1268c06131
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 0 deletions

View File

@ -32,6 +32,13 @@ class BlogPost extends Page
'AuthorNames' => 'Varchar(1024)',
'Summary' => 'HTMLText',
);
/**
* @var array
*/
private static $indexes = array(
'PublishDate' => true,
):
/**
* @var array