mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
FIXED: Minor adjustment to order of file fulltext search fields. By matching the order of these index columns to the same as the fields on the table itself, this will prevent the unnecessary regeneration of fulltext indexes on some database connectors each dev/build, notably MS SQL Server.
This commit is contained in:
parent
2b172aa891
commit
cd7ea01bd1
@ -44,7 +44,7 @@ class FulltextSearchable extends DataExtension {
|
||||
public static function enable($searchableClasses = array('SiteTree', 'File')) {
|
||||
$defaultColumns = array(
|
||||
'SiteTree' => '"Title","MenuTitle","Content","MetaTitle","MetaDescription","MetaKeywords"',
|
||||
'File' => '"Filename","Title","Content"'
|
||||
'File' => '"Title","Filename","Content"'
|
||||
);
|
||||
|
||||
if(!is_array($searchableClasses)) $searchableClasses = array($searchableClasses);
|
||||
|
Loading…
Reference in New Issue
Block a user