Rename top level directory devutil to gerrit1_import
Really this directory exists to support the Gerrit1 -> 2 upgrade, and not as utilities for development. Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
@@ -80,7 +80,7 @@ Gerrit2 Database Setup
|
||||
Tell Gerrit about your database connection information. Note that
|
||||
the username you use here *must* be the default of `gerrit2` and
|
||||
the database name *must* be the default of `reviewdb`, unless you
|
||||
modify `devutil/1-to-2.sh`.
|
||||
modify `gerrit1_import/1-to-2.sh`.
|
||||
|
||||
====
|
||||
./gerrit.war --cat extra/GerritServer.properties_example >GerritServer.properties
|
||||
@@ -112,7 +112,7 @@ In the Gerrit2 source tree use `1-to-2.sh` to finish the conversion
|
||||
process:
|
||||
|
||||
====
|
||||
sh devutil/1-to-2.sh yourapp.dump config.sql
|
||||
sh gerrit1_import/1-to-2.sh yourapp.dump config.sql
|
||||
====
|
||||
|
||||
|
||||
|
@@ -63,9 +63,9 @@ import java.util.Set;
|
||||
/**
|
||||
* Imports data from Gerrit 1 into Gerrit 2.
|
||||
* <p>
|
||||
* The tool assumes that <code>devutil/import_gerrit1.sql</code> has already
|
||||
* been executed on this schema. All existing ProjectRight entities are wiped
|
||||
* from the database and generated from scratch.
|
||||
* The tool assumes that <code>gerrit1_import/import_gerrit1.sql</code> has
|
||||
* already been executed on this schema. All existing ProjectRight entities are
|
||||
* wiped from the database and generated from scratch.
|
||||
* <p>
|
||||
* The tool requires Gerrit 1 tables (<code>gerrit1.$table_name</code>) through
|
||||
* the same database connection as the ReviewDb schema is on.
|
||||
|
@@ -35,10 +35,10 @@ dropdb $dstdb
|
||||
createdb -E UTF-8 -O $user $dstdb || exit
|
||||
pg_restore -O -d $dstdb $v1data || exit
|
||||
$g2 CreateSchema || exit
|
||||
psql -f devutil/import_gerrit1_a.sql $dstdb || exit
|
||||
psql -f gerrit1_import/import_gerrit1_a.sql $dstdb || exit
|
||||
psql -f $cfgsql $dstdb || exit
|
||||
$g2 ImportGerrit1 || exit
|
||||
psql -f devutil/import_gerrit1_b.sql $dstdb || exit
|
||||
psql -f gerrit1_import/import_gerrit1_b.sql $dstdb || exit
|
||||
|
||||
echo >&2
|
||||
echo >&2 "Creating secondary indexes..."
|
@@ -11,7 +11,7 @@
|
||||
-- some config.sql script. At least git_base_path must be set.
|
||||
--
|
||||
-- Execute the conversion script:
|
||||
-- devutil/1-to-2.sh gerrit1.dump config.sql
|
||||
-- gerrit1_import/1-to-2.sh gerrit1.dump config.sql
|
||||
--
|
||||
|
||||
DELETE FROM accounts;
|
Reference in New Issue
Block a user