Skip to content

Commit

Permalink
Merge pull request #6739 from deutschebank/db-contrib/waltz-6735-lega…
Browse files Browse the repository at this point in the history
…l-entity-indexes

Db contrib/waltz 6735 legal entity indexes
  • Loading branch information
davidwatkins73 authored Aug 29, 2023
2 parents 0445919 + 39d9637 commit 8cba199
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions waltz-schema/src/main/resources/liquibase/db.changelog-1.53.xml
Original file line number Diff line number Diff line change
Expand Up @@ -335,4 +335,25 @@
</changeSet>


<!-- CTCTOWALTZ-2845 - Add indexes to legal tables -->
<changeSet id="20230825-2845-1"
author="salekam">
<comment>2845: legal entity index on external id</comment>
<createIndex indexName="idx_legal_entity_external_id"
tableName="legal_entity"
unique="true">
<column name="external_id"/>
</createIndex>
</changeSet>

<changeSet id="20230825-2845-2"
author="salekam">
<comment>2845: legal entity relationship index on (legal_entity_id, target_id, target_kind, relationship_kind_id)</comment>
<createIndex indexName="idx_ler_kind_id_target"
tableName="legal_entity_relationship"
unique="true">
<column name="legal_entity_id, target_id, target_kind, relationship_kind_id"/>
</createIndex>
</changeSet>

</databaseChangeLog>

0 comments on commit 8cba199

Please sign in to comment.