6cd0a79a1c
Change-Id: Iedfc8f06c4c9b9de183917f523d6c0ff946719c7
63 lines
1.5 KiB
Plaintext
63 lines
1.5 KiB
Plaintext
= MigrateAccountPatchReviewDb
|
|
|
|
== NAME
|
|
MigrateAccountPatchReviewDb - Migrates account patch review db from one database
|
|
backend to another.
|
|
|
|
== SYNOPSIS
|
|
[verse]
|
|
--
|
|
_java_ -jar gerrit.war MigrateAccountPatchReviewDb
|
|
-d <SITE_PATH>
|
|
[--sourceUrl] [--chunkSize]
|
|
--
|
|
|
|
== DESCRIPTION
|
|
Migrates AccountPatchReviewDb from one database backend to another. The
|
|
AccountPatchReviewDb is a database used to store the user file reviewed flags.
|
|
|
|
This command is only intended to be run if the configuration parameter
|
|
link:config-gerrit.html#accountPatchReviewDb.url[accountPatchReviewDb.url]
|
|
is set or changed.
|
|
|
|
To migrate AccountPatchReviewDb:
|
|
|
|
* Stop Gerrit
|
|
* Configure new value for link:config-gerrit.html#accountPatchReviewDb.url[accountPatchReviewDb.url]
|
|
* Migrate data using this command
|
|
* Start Gerrit
|
|
|
|
== OPTIONS
|
|
|
|
-d::
|
|
--sourceUrl::
|
|
Url of source database. Only need to be specified if the source is not H2.
|
|
|
|
--chunkSize::
|
|
Chunk size of fetching from source and pushing to target on each time.
|
|
Defaults to 100000.
|
|
|
|
== CONTEXT
|
|
This command can only be run on a server which has direct
|
|
connectivity to the database.
|
|
|
|
== EXAMPLES
|
|
To migrate from H2 to the database specified by
|
|
link:config-gerrit.html#accountPatchReviewDb.url[accountPatchReviewDb.url]
|
|
in gerrit.config:
|
|
|
|
----
|
|
$ java -jar gerrit.war MigrateAccountPatchReviewDb
|
|
----
|
|
|
|
== SEE ALSO
|
|
|
|
* Configuration parameter link:config-gerrit.html#accountPatchReviewDb.url[accountPatchReviewDb.url]
|
|
|
|
GERRIT
|
|
------
|
|
Part of link:index.html[Gerrit Code Review]
|
|
|
|
SEARCHBOX
|
|
---------
|