]> source.dussan.org Git - sonarqube.git/commit
[SONAR-18502] move validation of drop index param
authorSteve Marion <unknown>
Wed, 22 Feb 2023 11:03:09 +0000 (12:03 +0100)
committersonartech <sonartech@sonarsource.com>
Tue, 21 Mar 2023 20:02:57 +0000 (20:02 +0000)
commitcf8af011aab425ed517204f6369bcf7ec8b66f4c
tree90401afddc15f31db71816cd28a44a76c04aa3f6
parentcba03a5443c9bcbe4066ab8a811e360292e9f66a
[SONAR-18502] move validation of drop index param

This is done to allow to run query based on an actual index name than may not be valid instead of expected one.
Refactor drop index structure to make it simpler and safer.

(cherry picked from commit 5173552f87f2179d9eff40db65ae4d6af3f99442)
server/sonar-db-migration/src/main/java/org/sonar/server/platform/db/migration/step/DropIndexBuilder.java [deleted file]
server/sonar-db-migration/src/main/java/org/sonar/server/platform/db/migration/step/DropIndexChange.java
server/sonar-db-migration/src/test/java/org/sonar/server/platform/db/migration/step/DropIndexBuilderTest.java [deleted file]
server/sonar-db-migration/src/test/java/org/sonar/server/platform/db/migration/step/DropIndexChangeTest.java [new file with mode: 0644]
server/sonar-db-migration/src/test/java/org/sonar/server/platform/db/migration/version/v97/DropIndexForComponentsProjectUuidWithSpecialNameTest.java
server/sonar-db-migration/src/test/resources/org/sonar/server/platform/db/migration/version/v97/DropIndexForComponentsProjectUuidWithSpecialNameTest/schema.sql