Re: Error when upgrading database
There is an error in the update script. I've posted a bug report at http://dev.tiki.org/item5103?itemId=5103
File installer/schema/20120429_fix_collation_tiki.php contains an error on line 20:
if ( $results= $installer->fetchAll('SELECT DISTINCT(TABLE_NAME) FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA = ?', $dbs_tiki)
If the DB name has a character in it such as a dash, this returns FALSE and the script (incorrectly) reports that the MySQL version is too old.
I just hardcode my DB name into the query, but the following code patch should work:
if ( $results= $installer->fetchAll("SELECT DISTINCT(TABLE_NAME) FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_SCHEMA = '$dbs_tiki'")