Skip to content

Commit

Permalink
Fixed baked database.php constants
Browse files Browse the repository at this point in the history
  • Loading branch information
sonnygauran committed Apr 29, 2011
1 parent 50206f4 commit 4add005
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/Cake/Console/Command/Task/DbConfigTask.php
Expand Up @@ -38,7 +38,7 @@ class DbConfigTask extends Shell {
*/
protected $_defaultConfig = array(
'name' => 'default',
'driver'=> 'mysql',
'datasource'=> 'Database/Mysql',
'persistent'=> 'false',
'host'=> 'localhost',
'login'=> 'root',
Expand Down Expand Up @@ -104,7 +104,7 @@ protected function _interactive() {
}
}

$driver = $this->in(__d('cake_console', 'Driver:'), array('mssql', 'mysql', 'oracle', 'postgres', 'sqlite'), 'mysql');
$driver = $this->in(__d('cake_console', 'Driver:'), array('Mssql', 'Mysql', 'Oracle', 'Postgres', 'Sqlite'), 'Mysql');

$persistent = $this->in(__d('cake_console', 'Persistent Connection?'), array('y', 'n'), 'n');
if (strtolower($persistent) == 'n') {
Expand Down Expand Up @@ -313,7 +313,7 @@ public function bake($configs) {
extract($config);

$out .= "\tpublic \${$name} = array(\n";
$out .= "\t\t'driver' => '{$driver}',\n";
$out .= "\t\t'datasource' => 'Database/{$driver}',\n";
$out .= "\t\t'persistent' => {$persistent},\n";
$out .= "\t\t'host' => '{$host}',\n";

Expand Down

0 comments on commit 4add005

Please sign in to comment.