diff --git a/search/FulltextSearchable.php b/search/FulltextSearchable.php index eaa786a5f..d18e0d8ea 100644 --- a/search/FulltextSearchable.php +++ b/search/FulltextSearchable.php @@ -49,6 +49,9 @@ class FulltextSearchable extends DataExtension { if(!class_exists($class)) continue; if(isset($defaultColumns[$class])) { + if(DB::getConn()->getDatabaseServer() == 'mysql') { + Object::add_static_var($class, 'create_table_options', array('MySQLDatabase' => 'ENGINE=MyISAM'), true); + } Object::add_extension($class, "FulltextSearchable('{$defaultColumns[$class]}')"); } else { throw new Exception("FulltextSearchable::enable() I don't know the default search columns for class '$class'");