/** * * Builds a CREATE TABLE command string. * * @param string $name The table name to create. * * @param string $cols The column definitions. * * @return string A CREATE TABLE command string. * */ protected function _sqlCreateTable($name, $cols) { $stmt = parent::_sqlCreateTable($name, $cols); $stmt .= " TYPE=InnoDB"; // for transactions $stmt .= " DEFAULT CHARSET=utf8 COLLATE=utf8_bin"; // for UTF8 return $stmt; }