Automatic schema upgrade on Gerrit startup

In case when Gerrit administrator(s) don't have a direct access to the
file system where the review site is located it gets difficult to
perform a schema upgrade (run the init program). For such cases it is
convenient if Gerrit performs schema upgrade automatically on its
startup.

Since this is a potentially dangerous operation, by default it will not
be performed. Configuration parameter site.upgradeSchemaOnStartup is
used to switch on automatic schema upgrade. It has 3 possible values:

  * OFF - no automatic schema upgrade (default)
  * AUTO - automatic schema upgrade and drop of unused DB objects
  * AUTO_NO_PRUNE - like AUTO but without dropping unused DB objects

Change-Id: Ief1bf1135fde74146e5a5fdd25f510a4eeae0a73
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
Signed-off-by: Sasa Zivkov <sasa.zivkov@sap.com>
3 files changed