Skip to content

Commit 2a977ec

Browse files
authored
Merge pull request #6917 from ORCID/8886-dev-indexes-to-event-tables
fix: Add indexes to event table
2 parents f00783d + 0fc6b24 commit 2a977ec

File tree

2 files changed

+32
-0
lines changed

2 files changed

+32
-0
lines changed

orcid-persistence/src/main/resources/db-master.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -376,4 +376,5 @@
376376
<include file="/db/updates/create_email_domain_mapping_tables.xml" />
377377
<include file="/db/updates/create_event_table.xml" />
378378
<include file="/db/updates/dw_event.xml" />
379+
<include file="/db/updates/create_event_indexes.xml" />
379380
</databaseChangeLog>
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
2+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-2.0.xsd">
4+
5+
<changeSet id="EVENT-ORCID-INDEX" author="Daniel Palafox">
6+
<preConditions onFail="MARK_RAN">
7+
<not>
8+
<indexExists indexName="event_orcid_index" tableName="event"/>
9+
</not>
10+
</preConditions>
11+
<sql>create index event_orcid_index on event(orcid);</sql>
12+
</changeSet>
13+
14+
<changeSet id="EVENT-CLIENT-ID-INDEX" author="Daniel Palafox">
15+
<preConditions onFail="MARK_RAN">
16+
<not>
17+
<indexExists indexName="event_client_id_index" tableName="event"/>
18+
</not>
19+
</preConditions>
20+
<sql>create index event_client_id_index on event(client_id);</sql>
21+
</changeSet>
22+
23+
<changeSet id="EVENT-TYPE-INDEX" author="Daniel Palafox">
24+
<preConditions onFail="MARK_RAN">
25+
<not>
26+
<indexExists indexName="event_type_index" tableName="event"/>
27+
</not>
28+
</preConditions>
29+
<sql>create index event_type_index on event(event_type);</sql>
30+
</changeSet>
31+
</databaseChangeLog>

0 commit comments

Comments
 (0)