function fix_htmlLongText($error, $opt, &$msg) { $_this =& NewsletterUpgrade::getInstance(); $db =& ConnectionManager::getDataSource($_this->connection); foreach ($error as $table => $field) { $query = 'ALTER TABLE `' . $table . '` CHANGE `' . $field . '` `' . $field . '` LONGTEXT CHARACTER SET utf8 COLLATE utf8_unicode_ci NULL DEFAULT NULL;'; //debug($query); if (!$db->execute($query)) { $msg = __('Unable to execute query :', true) . ' ' . $query; return false; } } return true; }