Skip to content

Commit

Permalink
Merge pull request #88 from simonwelsh/82da8a071807995914fbf406665115…
Browse files Browse the repository at this point in the history
…8c051d0e9c

FulltextSearch to switch to MyISAM
  • Loading branch information
sminnee committed Oct 29, 2011
2 parents dc9b500 + 82da8a0 commit 50c9ee8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
4 changes: 0 additions & 4 deletions filesystem/File.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,10 +97,6 @@ class File extends DataObject {
"Hierarchy",
);

static $create_table_options = array(
'MySQLDatabase' => 'ENGINE=MyISAM'
);

/**
* @var array List of allowed file extensions, enforced through {@link validate()}.
*
Expand Down
1 change: 1 addition & 0 deletions search/FulltextSearchable.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ static function enable($searchableClasses = array('SiteTree', 'File')) {

if(isset($defaultColumns[$class])) {
Object::add_extension($class, "FulltextSearchable('{$defaultColumns[$class]}')");
Object::add_static_var($class, 'create_table_options', array('MySQLDatabase' => 'ENGINE=MyISAM'));
} else {
throw new Exception("FulltextSearchable::enable() I don't know the default search columns for class '$class'");
}
Expand Down

0 comments on commit 50c9ee8

Please sign in to comment.