From f48bb9f67036d1fb859e0c286b5a7f3c781e4d39 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 4 Feb 2005 10:46:21 +0000 Subject: [PATCH] fixed error with fulltext indexes (eg. in the wiki), when the default-type-type is set to InnoDB, which is eg. the default for some newer windows installs or mysql 4.1.x --- phpgwapi/inc/class.schema_proc_mysql.inc.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/phpgwapi/inc/class.schema_proc_mysql.inc.php b/phpgwapi/inc/class.schema_proc_mysql.inc.php index a63ac1c847..9bf441dbdf 100644 --- a/phpgwapi/inc/class.schema_proc_mysql.inc.php +++ b/phpgwapi/inc/class.schema_proc_mysql.inc.php @@ -417,6 +417,11 @@ } $query = "CREATE TABLE $sTableName ($sTableSQL)"; + // override default table type, if a fulltext index is requested, as only MyISAM can do fulltext + if (stristr($sTableSQL,'FULLTEXT') !== false) + { + $query .= 'TYPE=MyISAM'; + } return !!($oProc->m_odb->query($query)); }