Skip to content

Commit

Permalink
Adding new indexes (#6993)
Browse files Browse the repository at this point in the history
  • Loading branch information
amontenegro authored Feb 20, 2024
1 parent b8677dc commit 7d57d0e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
3 changes: 2 additions & 1 deletion orcid-persistence/src/main/resources/db-master.xml
Original file line number Diff line number Diff line change
Expand Up @@ -382,5 +382,6 @@
<include file="/db/updates/grant_select_to_dw_user_on_dw_event.xml" />
<include file="/db/updates/identifier-types/update-ol-to-be-case-sensitive.xml" />
<include file="/db/updates/create_event_stats_table.xml" />
<include file="/db/updates/dw_event_stats.xml" />
<include file="/db/updates/dw_event_stats.xml" />
<include file="/db/updates/add_indexes_2024_02_20.xml" />
</databaseChangeLog>
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<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-2.0.xsd">

<changeSet id="event_date_created_idx" author="amontenegro">
<preConditions onFail="MARK_RAN">
<not>
<indexExists indexName="event_date_created_idx" tableName="event" />
</not>
</preConditions>
<sql>create index event_date_created_idx ON event (date_created);</sql>
</changeSet>
<changeSet id="oauth2_token_detail_last_modified_idx" author="amontenegro">
<preConditions onFail="MARK_RAN">
<not>
<indexExists indexName="oauth2_token_detail_last_modified_idx" tableName="oauth2_token_detail" />
</not>
</preConditions>
<sql>create index oauth2_token_detail_last_modified_idx ON oauth2_token_detail (last_modified);</sql>
</changeSet>

</databaseChangeLog>

0 comments on commit 7d57d0e

Please sign in to comment.