Use pg_restore -O during 1-to-2 conversion

Less likely to cause permissions problems when processing dump
files on another system.

Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
Shawn O. Pearce
2009-01-07 14:29:17 -08:00
parent c944cd5922
commit 08582886bd

View File

@@ -34,7 +34,7 @@ g2="$out/bin/gerrit2.sh --config=$gscfg"
dropdb $dstdb
createdb -E UTF-8 -O $user $dstdb || exit
pg_restore -d $dstdb $v1data || exit
pg_restore -O -d $dstdb $v1data || exit
$g2 CreateSchema || exit
psql -f devutil/import_gerrit1.sql $dstdb || exit
psql -f $cfgsql $dstdb || exit