選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

DbVersion71.java 3.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /*
  2. * SonarQube
  3. * Copyright (C) 2009-2018 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.v71;
  21. import org.sonar.server.platform.db.migration.step.MigrationStepRegistry;
  22. import org.sonar.server.platform.db.migration.version.DbVersion;
  23. public class DbVersion71 implements DbVersion {
  24. @Override
  25. public void addSteps(MigrationStepRegistry registry) {
  26. registry
  27. .add(2000, "Delete settings defined in sonar.properties from PROPERTIES table", DeleteSettingsDefinedInSonarDotProperties.class)
  28. .add(2001, "Add scope to rules", AddRuleScope.class)
  29. .add(2002, "Set rules scope to MAIN", SetRuleScopeToMain.class)
  30. .add(2003, "Make scope not nullable in rules", MakeScopeNotNullableInRules.class)
  31. .add(2004, "Use rule id in QPROFILE_CHANGES", UseRuleIdInQPChangesData.class)
  32. .add(2005, "Create table DEPRECATED_RULE_KEYS", CreateDeprecatedRuleKeysTable.class)
  33. .add(2006, "Clean orphans in Compute Engine child tables", CleanCeChildTablesOrphans.class)
  34. .add(2007, "Update PERMISSION_TEMPLATES.KEYS ", UpdatePermissionTooLongTemplateKeys.class)
  35. .add(2008, "Make scope not nullable in rules", MakeScopeNotNullableInRules.class)
  36. .add(2009, "Create table PROJECT_LINKS2", CreateTableProjectLinks2.class)
  37. .add(2010, "Populate table PROJECT_LINKS2", PopulateTableProjectLinks2.class)
  38. .add(2011, "Drop table PROJECT_LINKS", DropTableProjectLinks.class)
  39. .add(2012, "Rename table PROJECT_LINKS2 to PROJECT_LINKS", RenameTableProjectLinks2ToProjectLinks.class)
  40. .add(2013, "Create WEBHOOKS Table", CreateWebhooksTable.class)
  41. .add(2014, "Migrate webhooks from SETTINGS table to WEBHOOKS table", MigrateWebhooksToWebhooksTable.class)
  42. .add(2015, "Add webhook key to WEBHOOK_DELIVERIES table", AddWebhookKeyToWebhookDeliveriesTable.class)
  43. .add(2016, "Increase branch type size in PROJECT_BRANCHES", IncreaseBranchTypeSizeForPullRequest.class)
  44. .add(2017, "Add key_type column in PROJECT_BRANCHES", AddKeyTypeInProjectBranches.class)
  45. .add(2018, "Fill key_type column in PROJECT_BRANCHES", SetKeyTypeToBranchInProjectBranches.class)
  46. .add(2019, "Make key_type not nullable in PROJECT_BRANCHES", MakeKeyTypeNotNullableInProjectBranches.class)
  47. .add(2020, "Replace index in PROJECT_BRANCHES", ReplaceIndexInProjectBranches.class)
  48. .add(2021, "Add pull_request_data in PROJECT_BRANCHES", AddPullRequestBinaryInProjectBranches.class)
  49. .add(2022, "Clean broken project to QG references", CleanBrokenProjectToQGReferences.class)
  50. .add(2023, "Delete measures of project copies", DeleteMeasuresOfProjectCopies.class)
  51. ;
  52. }
  53. }