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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user