Skip to content

Commit

Permalink
[joomla#29102] Cannot create a new database during installation
Browse files Browse the repository at this point in the history
  • Loading branch information
dextercowley committed Sep 6, 2012
1 parent 4e2f15f commit 2754dc5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 3 additions & 0 deletions installation/CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ $ -> Language fix or change

-------------------- 3.0 Beta 1 Release [06-Sep-2012] ------------------

06-Sep-2012 Mark Dexter
# [#29102] Cannot create a new database during installation

05-Sep-2012 Mark Dexter
+ [#29088] PostgreSQL driver for Joomla! CMS 3.0. Thanks Michael.
# [#28963] Add ordering to column titles where it was missing. Thanks Peter van Westen.
Expand Down
8 changes: 2 additions & 6 deletions installation/models/database.php
Original file line number Diff line number Diff line change
Expand Up @@ -655,14 +655,10 @@ public function backupDatabase($db, $name, $prefix)
public function createDB($db, $options, $utf)
{
// Build the create database query.
//$query = 'CREATE DATABASE ' . $db->quoteName($name) . ' CHARACTER SET `utf8`';

// Run the create database query.
$db->setQuery($db->getCreateDbQuery($options, $utf));

try
{
$db->execute();
// Run the create database query.
$db->createDatabase($options, $utf);
}
catch (RuntimeException $e)
{
Expand Down

0 comments on commit 2754dc5

Please sign in to comment.