]> source.dussan.org Git - sonarqube.git/blob
1da53519c939b13e09afebaf2d475ec46e3c447f
[sonarqube.git] /
1 /*
2  * SonarQube
3  * Copyright (C) 2009-2017 SonarSource SA
4  * mailto:info AT sonarsource DOT com
5  *
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.
10  *
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.
15  *
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.
19  */
20 package org.sonar.server.platform.db.migration.version.v70;
21
22 import org.sonar.server.platform.db.migration.step.MigrationStepRegistry;
23 import org.sonar.server.platform.db.migration.version.DbVersion;
24
25 public class DbVersion70 implements DbVersion {
26
27   @Override
28   public void addSteps(MigrationStepRegistry registry) {
29     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, "Delete 'sonar.qualitygate' setting at global level", DeleteGlobalSonarQualityGateSetting.class)
51     ;
52   }
53 }