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.
21 package org.sonar.server.platform.db.migration.version.v65;
23 import org.sonar.server.platform.db.migration.step.MigrationStepRegistry;
24 import org.sonar.server.platform.db.migration.version.DbVersion;
26 public class DbVersion65 implements DbVersion {
28 public void addSteps(MigrationStepRegistry registry) {
30 .add(1700, "Drop table AUTHORS", DropTableAuthors.class)
31 .add(1701, "Clean orphans from USER_ROLES", CleanOrphanRowsInUserRoles.class)
32 .add(1702, "Clean orphans from GROUP_ROLES", CleanOrphanRowsInGroupRoles.class)
33 .add(1703, "Populate EVENTS.COMPONENT_UUID", PopulateEventsComponentUuid.class)
34 .add(1704, "Drop index EVENTS_COMPONENT_UUID", DropIndexEventsComponentUuid.class)
35 .add(1705, "Make EVENTS.COMPONENT_UUID not nullable", MakeEventsComponentUuidNotNullable.class)
36 .add(1706, "Recreate index EVENTS_COMPONENT_UUID", RecreateIndexEventsComponentUuid.class)
37 .add(1707, "Ensure ISSUE.PROJECT_UUID is consistent", EnsureIssueProjectUuidConsistencyOnIssues.class)
38 .add(1708, "Clean orphans from PROJECT_LINKS", CleanOrphanRowsInProjectLinks.class)
39 .add(1709, "Clean orphans from SETTINGS", CleanOrphanRowsInProperties.class)
40 .add(1710, "Clean orphans from MANUAL_MEASURES", CleanOrphanRowsInManualMeasures.class)
41 .add(1711, "Drop index MANUAL_MEASURES.COMPONENT_UUID", DropIndexManualMeasuresComponentUuid.class)
42 .add(1712, "Make MANUAL_MEASURES.COMPONENT_UUID not nullable", MakeManualMeasuresComponentUuidNotNullable.class)
43 .add(1713, "Recreate index MANUAL_MEASURES.COMPONENT_UUID", RecreateIndexManualMeasuresComponentUuid.class)
44 .add(1714, "Purge developer data", PurgeDeveloperData.class)
45 .add(1715, "Add rules_profiles.is_built_in", AddBuiltInFlagToRulesProfiles.class)
46 .add(1716, "Set rules_profiles.is_built_in to false", SetRulesProfilesIsBuiltInToFalse.class)
47 .add(1717, "Make rules_profiles.is_built_in not null", MakeRulesProfilesIsBuiltInNotNullable.class)
48 .add(1718, "Delete unused loaded_templates on quality profiles", DeleteLoadedTemplatesOnQProfiles.class)
49 .add(1719, "Create table default_qprofiles", CreateTableDefaultQProfiles.class)
50 .add(1720, "Populate table default_qprofiles", PopulateTableDefaultQProfiles.class)
51 .add(1721, "Drop rules_profiles.is_default", DropIsDefaultColumnFromRulesProfiles.class)
52 .add(1722, "Create table qprofiles", CreateTableOrgQProfiles.class)
53 .add(1723, "Populate table qprofiles", PopulateOrgQProfiles.class)
54 .add(1724, "Drop columns organization_uuid and parent_kee from rules_profiles", DropOrgColumnsFromRulesProfiles.class)
55 .add(1725, "Mark rules_profiles.is_built_in to true for default organization", SetRulesProfilesIsBuiltInToTrueForDefaultOrganization.class)
56 .add(1726, "Update org_qprofiles to reference built-in profiles", UpdateOrgQProfilesToPointToBuiltInProfiles.class)
57 .add(1727, "Delete rules_profiles orphans", DeleteOrphansFromRulesProfiles.class)
58 .add(1728, "Rename column qprofile_changes.qprofile_key to qprofile_changes.rules_profile_uuid", RenameQProfileKeyToRulesProfileUuidOnQProfileChanges.class)
59 .add(1729, "Add index on qprofile_changes.rules_profile_uuid", AddIndexRulesProfileUuidOnQProfileChanges.class)
60 .add(1730, "Add USERS.ONBOARDED", AddUsersOnboarded.class)
61 .add(1731, "Populate USERS.ONBOARDED", PopulateUsersOnboarded.class)
62 .add(1732, "Make USERS.ONBOARDED not nullable", MakeUsersOnboardedNotNullable.class)
63 .add(1733, "Create table es_queue", CreateEsQueueTable.class)
64 .add(1734, "Add index on es_queue.created_at", AddIndexOnEsQueueCreatedAt.class)