Skip to content

Commit

Permalink
Drop duplicate indexes (#625)
Browse files Browse the repository at this point in the history
  • Loading branch information
nscuro committed Mar 25, 2024
1 parent 3492bc1 commit d7a2044
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/main/resources/migration/changelog-v5.5.0.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,25 @@
<column name="LAST_USED" type="TIMESTAMP WITH TIME ZONE"/>
</addColumn>
</changeSet>

<changeSet id="v5.5.0-2" author="[email protected]">
<dropIndex tableName="AFFECTEDVERSIONATTRIBUTION" indexName="AFFECTEDVERSIONATTRIBUTION_VULNERABILITY_IDX"/>
<dropIndex tableName="AFFECTEDVERSIONATTRIBUTION" indexName="AFFECTEDVERSIONATTRIBUTION_VULNERABLE_SOFTWARE_IDX"/>
<dropIndex tableName="ANALYSIS" indexName="ANALYSIS_PROJECT_ID_IDX"/>
<dropIndex tableName="COMPONENTS_VULNERABILITIES" indexName="COMPONENTS_VULNERABILITIES_COMPONENT_ID_IDX"/>
<dropIndex tableName="DEPENDENCYMETRICS" indexName="DEPENDENCYMETRICS_PROJECT_ID_IDX"/>
<dropIndex tableName="FINDINGATTRIBUTION" indexName="FINDINGATTRIBUTION_COMPONENT_ID_IDX"/>
<dropIndex tableName="INTEGRITY_META_COMPONENT" indexName="PURL_IDX"/>
<dropUniqueConstraint tableName="INTEGRITY_META_COMPONENT" constraintName="INTEGRITY_META_COMPONENT_U1"/>
<dropIndex tableName="MAPPEDLDAPGROUP" indexName="MAPPEDLDAPGROUP_TEAM_ID_IDX"/>
<dropIndex tableName="MAPPEDOIDCGROUP" indexName="MAPPEDOIDCGROUP_TEAM_ID_IDX"/>
<dropIndex tableName="PROJECT_PROPERTY" indexName="PROJECT_PROPERTY_PROJECT_ID_IDX"/>
<dropIndex tableName="VIOLATIONANALYSIS" indexName="VIOLATIONANALYSIS_PROJECT_ID_IDX"/>
<dropIndex tableName="VULNERABILITY" indexName="VULNERABILITY_VULNID_IDX"/>
<dropIndex tableName="VULNERABLESOFTWARE" indexName="VULNERABLESOFTWARE_PART_VENDOR_PRODUCT_IDX"/>

<createIndex tableName="INTEGRITY_META_COMPONENT" indexName="INTEGRITY_META_COMPONENT_PURL_IDX" unique="true">
<column name="PURL"/>
</createIndex>
</changeSet>
</databaseChangeLog>

0 comments on commit d7a2044

Please sign in to comment.