Merge pull request #88 from simonwelsh/82da8a071807995914fbf4066651158c051d0e9c

FulltextSearch to switch to MyISAM
This commit is contained in:
Sam Minnée 2011-10-28 19:28:01 -07:00
commit 50c9ee8c26
2 changed files with 1 additions and 4 deletions

View File

@ -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()}.
*

View File

@ -50,6 +50,7 @@ class FulltextSearchable extends DataExtension {
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'");
}