Skip to content

Commit

Permalink
Merge pull request #27 from atlanhq/ATH-1145-update-migration
Browse files Browse the repository at this point in the history
[UPDATE] user attribute index with precondition check
  • Loading branch information
JhaSwechha authored Jan 13, 2025
2 parents c501a67 + e7ebc50 commit 720869f
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,14 @@

<changeSet author="keycloak" id="KEYCLOAK-17267-add-index-to-user-attributes">
<validCheckSum>7:1a7f28ff8d9e53aeb879d76ea3d9341a</validCheckSum>

<!-- Precondition to ensure the index doesn't already exist -->
<preConditions onFail="MARK_RAN">
<not>
<indexExists indexName="IDX_USER_ATTRIBUTE_NAME" tableName="USER_ATTRIBUTE"/>
</not>
</preConditions>

<createIndex indexName="IDX_USER_ATTRIBUTE_NAME" tableName="USER_ATTRIBUTE">
<column name="NAME" type="VARCHAR(255)"/>
<column name="VALUE" type="VARCHAR(255)"/>
Expand Down

0 comments on commit 720869f

Please sign in to comment.