Only set the create_table_options value when enabling FulltextSearch

This commit is contained in:
Simon Welsh 2011-10-29 15:06:48 +13:00
parent dc9b500156
commit 82da8a0718
2 changed files with 1 additions and 4 deletions

View File

@ -97,10 +97,6 @@ class File extends DataObject {
"Hierarchy", "Hierarchy",
); );
static $create_table_options = array(
'MySQLDatabase' => 'ENGINE=MyISAM'
);
/** /**
* @var array List of allowed file extensions, enforced through {@link validate()}. * @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])) { if(isset($defaultColumns[$class])) {
Object::add_extension($class, "FulltextSearchable('{$defaultColumns[$class]}')"); Object::add_extension($class, "FulltextSearchable('{$defaultColumns[$class]}')");
Object::add_static_var($class, 'create_table_options', array('MySQLDatabase' => 'ENGINE=MyISAM'));
} else { } else {
throw new Exception("FulltextSearchable::enable() I don't know the default search columns for class '$class'"); throw new Exception("FulltextSearchable::enable() I don't know the default search columns for class '$class'");
} }