mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-16 03:34:48 +02:00
using correct defaults eg. "template1" for postgres
This commit is contained in:
@ -58,7 +58,7 @@ class setup_cmd_database extends setup_cmd
|
||||
{
|
||||
if (!is_array($domain))
|
||||
{
|
||||
$domain = array(
|
||||
$data = array(
|
||||
'domain' => $domain,
|
||||
'db_type' => $db_type,
|
||||
'db_host' => $db_host,
|
||||
@ -73,8 +73,12 @@ class setup_cmd_database extends setup_cmd
|
||||
'make_db_name_unique' => $make_db_name_unique,
|
||||
);
|
||||
}
|
||||
//error_log(__METHOD__.'('.array2string($domain).") make_db_name_unique=".array2string($domain['make_db_name_unique']));
|
||||
admin_cmd::__construct($domain);
|
||||
else
|
||||
{
|
||||
$data = $domain;
|
||||
}
|
||||
// need to incorporate correct defaults for given database type
|
||||
admin_cmd::__construct(array_merge(self::defaults($data['db_type']), array_diff($data, array(null))));
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user