Add db index on PublishDate (#559)

* Add db index on PublishDate
This commit is contained in:
Stig Lindqvist 2018-11-14 09:31:06 +13:00 committed by Stevie Mayhew
parent 0189bcbbb9
commit 7352665216

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