Skip to content

Commit

Permalink
Merge pull request #9328 from andrepereiradasilva/patch-2
Browse files Browse the repository at this point in the history
Solves 9326: clean beta 4 install without pre-created database doesn't work
  • Loading branch information
wilsonge committed Mar 7, 2016
2 parents c8a23b4 + 7cacd55 commit 51a8fde
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions libraries/joomla/database/driver.php
Original file line number Diff line number Diff line change
Expand Up @@ -854,6 +854,7 @@ protected function getCreateDatabaseQuery($options, $utf)
if ($utf)
{
$charset = $this->utf8mb4 ? 'utf8mb4' : 'utf8';
$collation = $charset . '_unicode_ci';

return 'CREATE DATABASE ' . $this->quoteName($options->db_name) . ' CHARACTER SET `' . $charset . '` COLLATE `' . $collation . '`';
}
Expand Down

0 comments on commit 51a8fde

Please sign in to comment.