[DATABASE] Enable fulltext search by default
Also rename fulltext indices to more fitting names and move the check from classes into database/schema.php
This commit is contained in:
@@ -370,11 +370,6 @@ class MysqlSchema extends Schema
|
||||
|
||||
public function preferredEngine($def)
|
||||
{
|
||||
/* MyISAM is no longer required for fulltext indexes, fortunately
|
||||
if (!empty($def['fulltext indexes'])) {
|
||||
return 'MyISAM';
|
||||
}
|
||||
*/
|
||||
return 'InnoDB';
|
||||
}
|
||||
|
||||
|
@@ -1061,6 +1061,10 @@ class Schema
|
||||
}
|
||||
}
|
||||
|
||||
if (common_config('search', 'type') !== 'fulltext') {
|
||||
unset($tableDef['fulltext indexes']);
|
||||
}
|
||||
|
||||
return $tableDef;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user