mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 02:56:15 +00:00
Fixed baked database.php constants
This commit is contained in:
parent
50206f4315
commit
4add005baa
1 changed files with 3 additions and 3 deletions
|
@ -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 @@ class DbConfigTask extends Shell {
|
|||
}
|
||||
}
|
||||
|
||||
$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 @@ class DbConfigTask extends Shell {
|
|||
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";
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue