diff --git a/filesystem/File.php b/filesystem/File.php index d16d94b11..36a36c311 100644 --- a/filesystem/File.php +++ b/filesystem/File.php @@ -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()}. * diff --git a/search/FulltextSearchable.php b/search/FulltextSearchable.php index eaa786a5f..20a09868a 100644 --- a/search/FulltextSearchable.php +++ b/search/FulltextSearchable.php @@ -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'"); }