mirror of
https://github.com/moodle/moodle.git
synced 2025-04-22 17:02:03 +02:00
PostgreSQL 7.x pg_dump command line options fix
This commit is contained in:
parent
b2b97d6834
commit
ef03a260e5
@ -199,7 +199,7 @@ function db_migrate2utf8(){ //Eloy: Perhaps some type of limit parameter here
|
||||
} else {
|
||||
$cluster = '';
|
||||
}
|
||||
$cmd = "PGPASSWORD={$CFG->dbpass} pg_dump -Fp -E 'UNICODE' -O -x -U {$CFG->dbuser}$cluster";
|
||||
$cmd = "PGPASSWORD={$CFG->dbpass} PGCLIENTENCODING='UNICODE' pg_dump -Fp -O -x -U {$CFG->dbuser}$cluster";
|
||||
if ($CFG->dbhost) {
|
||||
$host = split(":", $CFG->dbhost);
|
||||
if ($host[0]) $cmd .= " -h {$host[0]}";
|
||||
|
Loading…
x
Reference in New Issue
Block a user