Index: trunk/core/install.php =================================================================== diff -u -N -r8598 -r8901 --- trunk/core/install.php (.../install.php) (revision 8598) +++ trunk/core/install.php (.../install.php) (revision 8901) @@ -759,7 +759,7 @@ // add prefix to all tables if (strlen($table_prefix) > 0) { - $replacements = Array ('CREATE TABLE ', 'INSERT INTO ', 'UPDATE ', 'ALTER TABLE '); + $replacements = Array ('CREATE TABLE ', 'INSERT INTO ', 'UPDATE ', 'ALTER TABLE ', 'DELETE FROM '); foreach ($replacements as $replacement) { $sqls = str_replace($replacement, $replacement.$table_prefix, $sqls); } @@ -781,7 +781,7 @@ continue; // usually last line } - if (substr($sql, 0, 13) == 'CREATE TABLE ') { + if (substr($sql, 0, 13) == 'CREATE TABLE ' && $this->systemConfig['Database']['DBCollation']) { // it is CREATE TABLE statement -> add collation $sql .= ' COLLATE \''.$this->systemConfig['Database']['DBCollation'].'\''; }