Skip to content

Commit

Permalink
adds user_id index to organization members table (#243)
Browse files Browse the repository at this point in the history
  • Loading branch information
richardalberto committed Jun 10, 2024
1 parent 5b23e64 commit bb41430
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/main/resources/META-INF/jpa-changelog-phasetwo-20240610.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd">

<changeSet author="richardalberto" id="add-organization-member-user-index" >
<preConditions onFail="MARK_RAN">
<not>
<indexExists indexName="IDX_USER_ID" />
</not>
</preConditions>
<createIndex indexName="IDX_USER_ID" tableName="ORGANIZATION_MEMBER">
<column name="USER_ID" type="VARCHAR(255)"/>
</createIndex>
</changeSet>

</databaseChangeLog>
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@
<include file="META-INF/jpa-changelog-phasetwo-20240123.xml"/>
<include file="META-INF/jpa-changelog-phasetwo-20240229.xml"/>
<include file="META-INF/jpa-changelog-phasetwo-20240308.xml"/>
<include file="META-INF/jpa-changelog-phasetwo-20240610.xml"/>

</databaseChangeLog>

0 comments on commit bb41430

Please sign in to comment.