BUG-14676 New tables created are not created in utf8 format

Adding properties to the CREATE TABLE query to set ENGINE InnoDB, CHARSET=utf8 y COLLATE=utf8_general_ci to make all tables has this structure.
This commit is contained in:
jennylee
2014-04-15 11:20:03 -04:00
committed by Erik Amaru Ortiz
parent 83a3f51a3d
commit 30a498d607

View File

@@ -80,7 +80,7 @@ class database extends database_base
if (isset( $aParameters['Null'] ) && $aParameters['Null'] == 'YES') { if (isset( $aParameters['Null'] ) && $aParameters['Null'] == 'YES') {
$sSQL .= ' NULL'; $sSQL .= ' NULL';
} else { } else {
$sSQL .= ' NOT NULL'; $sSQL .= ' NOT NULL';
} }
if (isset( $aParameters['Key'] ) && $aParameters['Key'] == 'PRI') { if (isset( $aParameters['Key'] ) && $aParameters['Key'] == 'PRI') {
$sKeys .= $this->sQuoteCharacter . $sColumnName . $this->sQuoteCharacter . ','; $sKeys .= $this->sQuoteCharacter . $sColumnName . $this->sQuoteCharacter . ',';