diff options
author | David Ostrovsky <david@ostrovsky.org> | 2015-11-28 23:04:10 +0100 |
---|---|---|
committer | David Pursehouse <david.pursehouse@sonymobile.com> | 2015-11-30 10:44:56 +0900 |
commit | 9bf41e4ecb8eaae0ea15e92a184f1ac57ab6378c (patch) | |
tree | b52195c78f504756b21cb7eb3cb6437258fe647b | |
parent | 3aa6d030d3cfe394d209290e1e08cdd4dd378567 (diff) |
CurrentSchemaVersion: Allow to use it in plugins
To implement dedicated databases in plugin based on GWTORM, current
version plays important role in upgrading schema version. Change
the modifiers for the attributes and the constructor to allow this.
Gerrit CI plugin needs this to support schema upgrade in init plugin
step.
Change-Id: I372be503cff79a48d1320244e625bc7c5635eca5
-rw-r--r-- | gerrit-reviewdb/src/main/java/com/google/gerrit/reviewdb/client/CurrentSchemaVersion.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gerrit-reviewdb/src/main/java/com/google/gerrit/reviewdb/client/CurrentSchemaVersion.java b/gerrit-reviewdb/src/main/java/com/google/gerrit/reviewdb/client/CurrentSchemaVersion.java index 183bb1ef42..cba5d41968 100644 --- a/gerrit-reviewdb/src/main/java/com/google/gerrit/reviewdb/client/CurrentSchemaVersion.java +++ b/gerrit-reviewdb/src/main/java/com/google/gerrit/reviewdb/client/CurrentSchemaVersion.java @@ -26,7 +26,7 @@ public final class CurrentSchemaVersion { private static final String VALUE = "X"; @Column(id = 1, length = 1) - protected String one = VALUE; + public String one = VALUE; public Key() { } @@ -50,12 +50,12 @@ public final class CurrentSchemaVersion { } @Column(id = 1) - protected Key singleton; + public Key singleton; /** Current version number of the schema. */ @Column(id = 2) public transient int versionNbr; - protected CurrentSchemaVersion() { + public CurrentSchemaVersion() { } } |