From b8e412aa9b630198c52c0c3c9e095ddf39908c4f Mon Sep 17 00:00:00 2001 From: tomas Date: Wed, 8 Jun 2005 13:46:27 +0000 Subject: [PATCH] Script for db structure dump added. --- livesupport/modules/storageAdmin/bin/php/dumpDbSchema.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/livesupport/modules/storageAdmin/bin/php/dumpDbSchema.php b/livesupport/modules/storageAdmin/bin/php/dumpDbSchema.php index 02e1e811f..a48d3862c 100644 --- a/livesupport/modules/storageAdmin/bin/php/dumpDbSchema.php +++ b/livesupport/modules/storageAdmin/bin/php/dumpDbSchema.php @@ -3,6 +3,7 @@ require_once 'conf.php'; require_once "$storageServerPath/var/conf.php"; header("Conten-type: text/plain"); $dbname = $config['dsn']['database']; - $res = `pg_dump -s $dbname`; + $dbuser = $config['dsn']['username']; + $res = `pg_dump -s $dbname -U $dbuser`; echo "$res\n"; ?> \ No newline at end of file