Permalink
Browse files

Merged pull request #64 from sonnygauran/2.0.

Updating database.php file generation to match changes on ConnectionManager
  • Loading branch information...
2 parents 50206f4 + 4add005 commit d61ebaee5d231046d44de2ffafcf91bf625d229d @lorenzo lorenzo committed Apr 29, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/Cake/Console/Command/Task/DbConfigTask.php
@@ -38,7 +38,7 @@ class DbConfigTask extends Shell {
*/
protected $_defaultConfig = array(
'name' => 'default',
- 'driver'=> 'mysql',
+ 'datasource'=> 'Database/Mysql',
'persistent'=> 'false',
'host'=> 'localhost',
'login'=> 'root',
@@ -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') {
@@ -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";

0 comments on commit d61ebae

Please sign in to comment.