3 * Copyright (C) 2009-2017 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)