3 * Copyright (C) 2009-2021 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.v91;
22 import org.sonar.server.platform.db.migration.step.MigrationStepRegistry;
23 import org.sonar.server.platform.db.migration.version.DbVersion;
25 public class DbVersion91 implements DbVersion {
27 public void addSteps(MigrationStepRegistry registry) {
29 .add(6001, "Drop 'manual_measures_component_uuid' index", DropManualMeasuresComponentUuidIndex.class)
30 .add(6002, "Drop 'manual_measures' table", DropManualMeasuresTable.class)
31 .add(6003, "Drop custom metrics data from 'live_measures' table", DropCustomMetricsLiveMeasuresData.class)
32 .add(6004, "Drop custom metrics data from 'project_measures' table", DropCustomMetricsProjectMeasuresData.class)
33 .add(6005, "Drop custom metrics data from 'metrics' table", DropUserManagedMetricsData.class)
34 .add(6006, "Drop 'user_managed' column from 'metrics' table", DropUserManagedColumnFromMetricsTable.class)
35 .add(6007, "Create Audit table", CreateAuditTable.class)
36 .add(6008, "Add column 'removed' to 'plugins' table", AddColumnRemovedToPlugins.class)
37 .add(6009, "Alter column 'client_secret' of 'alm_settings' table to length 160", AlterClientSecretColumnLengthOfAlmSettingsTable.class)
38 .add(6010, "Alter column 'private_key' of 'alm_settings' table to length 2500", AlterPrivateKeyColumnLengthOfAlmSettingsTable.class)
39 .add(6011, "Create 'portfolios' table", CreatePortfoliosTable.class)
40 .add(6012, "Create unique index for 'kee' in 'portfolios'", CreateIndexOnKeeForPortfolios.class)
41 .add(6013, "Create 'portfolio_references' table", CreatePortfolioReferencesTable.class)
42 .add(6014, "Create unique index for 'portfolio_references'", CreateIndexForPortfolioReferences.class)
43 .add(6015, "Create 'portfolio_projects' table", CreatePortfolioProjectsTable.class)
44 .add(6016, "Create unique index for 'portfolio_projects'", CreateIndexForPortfolioProjects.class)
45 .add(6017, "Migrate portfolios to new tables", MigratePortfoliosToNewTables.class)
46 .add(6018, "Create index for 'issue_changes' on 'issue_key' and 'change_type'", CreateIndexForIssueChangesOnIssueKeyAndChangeType.class)