3 * Copyright (C) 2009-2019 SonarSource SA
4 * mailto:info AT sonarsource DOT com
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 3 of the License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public License
17 * along with this program; if not, write to the Free Software Foundation,
18 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
20 package org.sonar.server.platform.db.migration.version.v70;
22 import org.sonar.server.platform.db.migration.step.MigrationStepRegistry;
23 import org.sonar.server.platform.db.migration.version.DbVersion;
25 public class DbVersion70 implements DbVersion {
28 public void addSteps(MigrationStepRegistry registry) {
30 .add(1900, "Add QUALITY_GATES.IS_BUILT_IN", AddIsBuiltInToQualityGates.class)
31 .add(1901, "Populate QUALITY_GATES.IS_BUILT_IN", PopulateQualityGatesIsBuiltIn.class)
32 .add(1902, "Make QUALITY_GATES.IS_BUILT_IN not null", MakeQualityGatesIsBuiltInNotNullable.class)
33 .add(1903, "Remove quality gates loaded templates", RemoveQualityGateLoadedTemplates.class)
34 .add(1904, "Rename quality gate \"SonarQube way\" to \"Sonar way\"", RenameOldSonarQubeWayQualityGate.class)
35 .add(1905, "Drop LOADED_TEMPLATES table", DropLoadedTemplatesTable.class)
36 .add(1906, "Create table live_measures", CreateTableLiveMeasures.class)
37 .add(1907, "Populate table live_measures", PopulateLiveMeasures.class)
38 .add(1908, "Delete person and file measures", DeletePersonAndFileMeasures.class)
39 .add(1909, "Drop index on project_measures.person_id", DropIndexOnPersonMeasures.class)
40 .add(1910, "Create ORG_QUALITY_GATES table", CreateOrgQualityGatesTable.class)
41 .add(1911, "Add ORGANIZATIONS.DEFAULT_QUALITY_GATE_UUID", AddDefaultQualityGateUuidToOrganizations.class)
42 .add(1912, "Create QUALITY_GATES.UUID", AddUuidToQualityGates.class)
43 .add(1913, "Populate QUALITY_GATES.UUID", PopulateUuidOnQualityGates.class)
44 .add(1914, "Make QUALITY_GATES.UUID not nullable", MakeUuidNotNullableOnQualityGates.class)
45 .add(1915, "Drop unique index on QUALITY_GATES.NAME", DropUniqueIndexOnQualityGatesName.class)
46 .add(1916, "Create builtin quality gate if required", CreateBuiltInQualityGate.class)
47 .add(1917, "Populate ORG_QUALITY_GATES table", PopulateOrgQualityGates.class)
48 .add(1918, "Populate default quality gate on organization", PopulateDefaultQualityGate.class)
49 .add(1919, "Associate existing quality gates to default organization", AssociateQualityGatesToDefaultOrganization.class)
50 .add(1920, "Read 'sonar.qualitygate' setting and set the value to default organization", ReadGlobalSonarQualityGateSettingToDefaultOrg.class)
51 .add(1921, "Delete 'sonar.qualitygate' setting at global level", DeleteGlobalSonarQualityGateSetting.class)
52 .add(1922, "Make ORGANIZATIONS.DEFAULT_QUALITY_GATE_UUID not nullable", SetDefaultQualityGateUuidAsNotNullableInOrganizations.class)
53 .add(1923, "Add users.homepage_type and users.homepage_parameter", AddHomepageToUsers.class)