gerrit/gerrit-server/src/main/java/com/google/gerrit/server/schema
Edwin Kempin 62c156857e Rename 'Push Annotated/Signed Tag' permission to 'Create Annotated/Signed Tag'
Each tag type requires a special permission for the tag creation:
- Lightweight tags require 'Create Reference'
- Annontated tags require 'Push Annotated Tag'
- Signed tags require 'Push Signed Tag'

This naming is inconsistent and may be confusing. E.g. whether tags
can be updated is controlled by the 'Push' permission on 'refs/tags/*'
and not by the 'Push Annotated/Signed Tag' permission, as some users
might expect.

This change includes a schema migration that renames the permissions
for creating annotated/signed tags.

Permission rules in project.config that use the old names are still
respected. They are automatically converted when the project config is
saved the next time. This is needed so that multi-master sites can do
a multi-step-migration:

1. First upgrade all hosts to the new binary:
   Projects may still contain permissions with the old names,
   new permissions are saved with the new names.
2. Run a background job on all hosts that migrates the permissions for
   all projects to the new names:
   Projects do not contain permissions with the old names,
   new permissions are saved with the new names.
3. Upgrade all hosts to a binary that doesn't respect the old names
   anymore.

The migration for schema 130 is rewritten because ProjectConfig no
longer allows to change the force flag for 'pushTag' without
converting it to 'createTag'.

Change-Id: I839be24f82a908b5184f15e746f3588a0d397b7e
Signed-off-by: Edwin Kempin <ekempin@google.com>
2016-09-08 13:50:04 +09:00
..
AclUtil.java Assign default permissions on user branches 2016-06-02 09:31:31 +02:00
AllProjectsCreator.java Rename 'Push Annotated/Signed Tag' permission to 'Create Annotated/Signed Tag' 2016-09-08 13:50:04 +09:00
AllUsersCreator.java Assign default permissions on user branches 2016-06-02 09:31:31 +02:00
BaseDataSourceType.java Fix remaining try-with-resources warnings 2015-08-28 15:18:20 -04:00
DB2.java Add support for DB2 database 2015-07-29 15:45:20 +09:00
DataSourceModule.java Add support for SAP HANA 2016-01-28 14:07:17 +01:00
DataSourceProvider.java Enable and fix 'Statement unnecessarily nested within else clause' warnings 2016-06-02 10:20:37 +09:00
DataSourceType.java Remove modifiers 'public' and 'abstract' from interface methods 2015-11-19 09:36:40 -08:00
DatabaseModule.java Extract an abstract base class for NotesMigration 2016-02-11 17:02:46 -05:00
Derby.java Add support for Apache Derby database 2015-10-21 21:14:27 +02:00
H2.java Add advanced H2 option handling 2016-07-11 08:54:25 +00:00
H2AccountPatchReviewStore.java Add advanced H2 option handling 2016-07-11 08:54:25 +00:00
HANA.java Add missing newline at end of files 2016-05-04 13:48:11 +00:00
JDBC.java Add missing newline at end of files 2016-05-04 13:48:11 +00:00
JdbcUtil.java Make JdbcUtil#port() public 2015-11-17 19:34:25 +09:00
MaxDb.java Add missing newline at end of files 2016-05-04 13:48:11 +00:00
MySql.java Add missing newline at end of files 2016-05-04 13:48:11 +00:00
NotesMigrationSchemaFactory.java Use a common function to unwrap ReviewDb 2016-06-29 16:42:04 +02:00
Oracle.java Revert "Use javax.inject.Inject instead of com.google.inject.Inject" 2014-09-30 10:53:50 +02:00
PostgreSQL.java Add missing newline at end of files 2016-05-04 13:48:11 +00:00
ProjectConfigSchemaUpdate.java Rename 'Push Annotated/Signed Tag' permission to 'Create Annotated/Signed Tag' 2016-09-08 13:50:04 +09:00
ReviewDbDatabaseProvider.java Revert "Use javax.inject.Inject instead of com.google.inject.Inject" 2014-09-30 10:53:50 +02:00
ReviewDbFactory.java Standardize capitalization of "NoteDb" 2016-03-24 14:39:15 -04:00
SchemaCreator.java Grant admins read, push and create on refs/users/default 2015-05-06 14:03:47 +02:00
SchemaModule.java Move GerritServerIdProvider to server.config package 2016-04-12 12:42:38 -04:00
SchemaUpdater.java Use a common function to unwrap ReviewDb 2016-06-29 16:42:04 +02:00
SchemaVersion.java Rename 'Push Annotated/Signed Tag' permission to 'Create Annotated/Signed Tag' 2016-09-08 13:50:04 +09:00
SchemaVersionCheck.java Use try-with-resources statements 2015-06-23 21:11:57 +02:00
Schema_83.java Drop broken Schema migrations 2015-01-27 14:40:22 +01:00
Schema_84.java Revert "Use javax.inject.Inject instead of com.google.inject.Inject" 2014-09-30 10:53:50 +02:00
Schema_85.java Revert "Use javax.inject.Inject instead of com.google.inject.Inject" 2014-09-30 10:53:50 +02:00
Schema_86.java Revert "Use javax.inject.Inject instead of com.google.inject.Inject" 2014-09-30 10:53:50 +02:00
Schema_87.java Use AutoCloseable gwtorm/jdbc instances 2015-01-13 11:23:40 -08:00
Schema_88.java Revert "Use javax.inject.Inject instead of com.google.inject.Inject" 2014-09-30 10:53:50 +02:00
Schema_89.java Use new SqlDialect.dropIndex method in schema upgrades 2015-01-13 11:23:41 -08:00
Schema_90.java Use AutoCloseable gwtorm/jdbc instances 2015-01-13 11:23:40 -08:00
Schema_91.java Revert "Use javax.inject.Inject instead of com.google.inject.Inject" 2014-09-30 10:53:50 +02:00
Schema_92.java Revert "Use javax.inject.Inject instead of com.google.inject.Inject" 2014-09-30 10:53:50 +02:00
Schema_93.java Revert "Use javax.inject.Inject instead of com.google.inject.Inject" 2014-09-30 10:53:50 +02:00
Schema_94.java Use AutoCloseable gwtorm/jdbc instances 2015-01-13 11:23:40 -08:00
Schema_95.java Revert "Use javax.inject.Inject instead of com.google.inject.Inject" 2014-09-30 10:53:50 +02:00
Schema_96.java Revert "Use javax.inject.Inject instead of com.google.inject.Inject" 2014-09-30 10:53:50 +02:00
Schema_97.java Revert "Use javax.inject.Inject instead of com.google.inject.Inject" 2014-09-30 10:53:50 +02:00
Schema_98.java Use AutoCloseable gwtorm/jdbc instances 2015-01-13 11:23:40 -08:00
Schema_99.java Revert "Use javax.inject.Inject instead of com.google.inject.Inject" 2014-09-30 10:53:50 +02:00
Schema_100.java Remove mergeable bit from Change 2014-11-03 13:39:17 -08:00
Schema_101.java Use AutoCloseable gwtorm/jdbc instances 2015-01-13 11:23:40 -08:00
Schema_102.java Use new SqlDialect.dropIndex method in schema upgrades 2015-01-13 11:23:41 -08:00
Schema_103.java Add $change.originalSubject for email templates 2014-12-27 23:13:21 +00:00
Schema_104.java Remove old change screen 2015-01-14 17:25:38 -08:00
Schema_105.java Remove leftover Change indexes and open field 2015-01-16 14:28:37 -05:00
Schema_106.java Parallelize creating of reflog in refs/meta/config by migration step 106 2016-02-02 15:23:37 +00:00
Schema_107.java Use try-with-resources statements 2015-06-23 21:11:57 +02:00
Schema_108.java Migrate more callers to ChangeNotes.Factory#createChecked 2016-02-23 15:00:48 +01:00
Schema_109.java Schema_109: Remove trailing semicolon from SQL statement 2016-01-13 23:25:11 +01:00
Schema_110.java Bump database schema version 2015-07-16 10:11:35 +02:00
Schema_111.java Remove contact store functionality 2015-08-28 14:08:58 -04:00
Schema_112.java Schema_112: Remove unused imports 2015-10-06 16:10:50 -04:00
Schema_113.java Store push certificate in patch set during ReceiveCommits 2015-10-09 10:04:18 -04:00
Schema_114.java Remove PatchSetAncestors table 2015-10-28 08:58:13 -04:00
Schema_115.java Add missing whitespace around keywords, operators and braces 2016-04-11 19:51:18 +09:00
Schema_116.java Fix database migration to schema 119 2016-03-22 14:46:12 -04:00
Schema_117.java Schema_117: Only attempt to rename column if the incorrect name exists 2016-01-27 18:35:04 +09:00
Schema_118.java Remove PatchSetAccess#byRevision(Range) 2016-01-20 13:00:10 -05:00
Schema_119.java Enable and fix 'Statement unnecessarily nested within else clause' warnings 2016-06-02 10:20:37 +09:00
Schema_120.java SubmoduleOp: Allow all branches to be subscribed 2016-08-04 16:13:11 -07:00
Schema_121.java Store NoteDb migration state inside Change 2016-04-06 07:31:33 -04:00
Schema_122.java Allow to tag reviews 2016-04-12 09:49:57 -04:00
Schema_123.java Migrate starred changes to git (part 2) 2016-04-18 16:08:54 +02:00
Schema_124.java Do not keep repository reference in VersionedAuthorizedKeys 2016-08-12 15:50:19 -04:00
Schema_125.java Remove duplicate loading of project config 2016-06-13 09:12:41 +02:00
Schema_126.java Add schema migration to repair default permissions on user branches 2016-06-13 10:25:06 +02:00
Schema_127.java Migrate reviewed flags to local H2 database 2016-06-23 09:52:36 +02:00
Schema_128.java Add ADD_PATCH_SET logic to lock patch sets 2016-07-26 17:23:34 +02:00
Schema_129.java PatchSet: Increase size of groups column 2016-08-10 14:06:43 +09:00
Schema_130.java Rename 'Push Annotated/Signed Tag' permission to 'Create Annotated/Signed Tag' 2016-09-08 13:50:04 +09:00
Schema_131.java Rename 'Push Annotated/Signed Tag' permission to 'Create Annotated/Signed Tag' 2016-09-08 13:50:04 +09:00
ScriptRunner.java Consistently use character encoding constants 2015-10-16 08:39:12 +00:00
UpdateUI.java Fix schema migration that creates index for submodule subscriptions 2012-05-29 10:06:16 +02:00