Document Schema_XXX classes

Signed-off-by: Edwin Kempin <ekempin@google.com>
Change-Id: Iaf6205338406002f72531f043191f3dbcddffd02
This commit is contained in:
Edwin Kempin
2019-12-30 15:24:32 +01:00
parent 8e9b48ee28
commit 26c618ad5c
2 changed files with 15 additions and 0 deletions

View File

@@ -14,6 +14,15 @@
package com.google.gerrit.server.schema;
/**
* Schema 180 for Gerrit metadata.
*
* <p>180 is the first schema version that is supported by NoteDb. All previous schema versions were
* for ReviewDb. Since ReviewDb no longer exists those schema versions have been deleted.
*
* <p>Upgrading to this schema version creates the {@code refs/meta/version} ref in NoteDb that
* stores the number of the current schema version.
*/
public class Schema_180 implements NoteDbSchemaVersion {
@Override
public void upgrade(Arguments args, UpdateUI ui) {

View File

@@ -17,6 +17,12 @@ package com.google.gerrit.server.schema;
import com.google.gerrit.gpg.PublicKeyStore;
import org.eclipse.jgit.lib.Repository;
/**
* Schema 181 for Gerrit metadata.
*
* <p>Upgrading to this schema version populates the GPG subkey to master key map (see {@link
* PublicKeyStore}.
*/
public class Schema_181 implements NoteDbSchemaVersion {
@Override
public void upgrade(Arguments args, UpdateUI ui) throws Exception {