diff options
author | David Pursehouse <dpursehouse@collab.net> | 2018-09-26 19:09:30 +0900 |
---|---|---|
committer | David Pursehouse <dpursehouse@collab.net> | 2018-09-26 19:09:30 +0900 |
commit | a6496e6a4469bd679236d4d97fd80ef845b7d4c5 (patch) | |
tree | 89d972b5444148edb65e2211d8351f93388143f2 | |
parent | 40c0f011e1318d181bbbe51c8eaa8c6623cb9d05 (diff) |
ProjectSchemaDefinitions: Bump schema version due to Lucene upgrade
In change I25e8454e2 Lucene was upgraded to 6.6.5. The schema versions
for the accounts, changes and groups indices were bumped so that a
reindex is required, however the same was not done for the projects
index.
Change-Id: I42dda168d7034de631650e6559f272dd9eed25c2
-rw-r--r-- | java/com/google/gerrit/index/project/ProjectSchemaDefinitions.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/java/com/google/gerrit/index/project/ProjectSchemaDefinitions.java b/java/com/google/gerrit/index/project/ProjectSchemaDefinitions.java index 07b5adb000..6229041067 100644 --- a/java/com/google/gerrit/index/project/ProjectSchemaDefinitions.java +++ b/java/com/google/gerrit/index/project/ProjectSchemaDefinitions.java @@ -30,8 +30,12 @@ public class ProjectSchemaDefinitions extends SchemaDefinitions<ProjectData> { ProjectField.NAME_PART, ProjectField.ANCESTOR_NAME); + @Deprecated static final Schema<ProjectData> V2 = schema(V1, ProjectField.STATE, ProjectField.REF_STATE); + // Bump Lucene version requires reindexing + static final Schema<ProjectData> V3 = schema(V2); + public static final ProjectSchemaDefinitions INSTANCE = new ProjectSchemaDefinitions(); private ProjectSchemaDefinitions() { |