Hi Team,
I am in the process of migrating our SonarQube Community Edition instance from version 9.9.2 to 25.4. As per the upgrade path recommendation, I am first upgrading from 9.9.2 to 24.12, and then I intend to proceed from 24.12 to 25.4.
However, while performing the upgrade to 24.12, during the database schema migration step, I encountered the following error:
Error
> Caused by: java.lang.IllegalStateException: Fail to execute ALTER TABLE components DROP COLUMN module_uuid
> at org.sonar.server.platform.db.migration.step.DdlChange$ContextImpl.execute(DdlChange.java:106)
> at org.sonar.server.platform.db.migration.step.DropColumnChange.execute(DropColumnChange.java:49)
> ...
> Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: The index 'missing_index_21_20' is dependent on column 'module_uuid'.
Environment details:
- SonarQube Edition: Community
- Current Version: 9.9.2 (LTS)
- Intermediate Version: 24.12 (intermediate step)
- Final Version: 25.4
- Database: Microsoft SQL Server
How to resolve this? Looking forward to your inputs and suggestions.