Package com.google.gerrit.server.schema
Class Schema_160
- java.lang.Object
-
- com.google.gerrit.server.schema.SchemaVersion
-
- com.google.gerrit.server.schema.Schema_160
-
public class Schema_160 extends SchemaVersion
Remove "My Drafts" menu items for all users and server-wide default preferences.Since draft changes no longer exist, these menu items are obsolete.
Only matches menu items (with any name) where the URL exactly matches one of the following, with or without leading
#
:- /q/is:draft
- /q/owner:self+is:draft
Other menus containing
is:draft
in other positions are not affected; this is still a valid predicate that matches no changes.
-
-
Field Summary
-
Fields inherited from class com.google.gerrit.server.schema.SchemaVersion
C
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
migrateData(ReviewDb db, UpdateUI ui)
Invoked between updateSchema (adds new columns/tables) and pruneSchema (removes deleted columns/tables).-
Methods inherited from class com.google.gerrit.server.schema.SchemaVersion
check, execute, finish, getBinaryVersion, getPrior, getVersionNbr, guessVersion, newExecutor, newStatement, prepareStatement, preUpdateSchema, renameColumn, renameTable
-
-
-
-
Method Detail
-
migrateData
protected void migrateData(ReviewDb db, UpdateUI ui) throws com.google.gwtorm.server.OrmException
Description copied from class:SchemaVersion
Invoked between updateSchema (adds new columns/tables) and pruneSchema (removes deleted columns/tables).- Overrides:
migrateData
in classSchemaVersion
- Parameters:
db
- open database handle.ui
- interface for interacting with the user.- Throws:
com.google.gwtorm.server.OrmException
- if a Gerrit-specific exception occurred.
-
-