-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6917 from ORCID/8886-dev-indexes-to-event-tables
fix: Add indexes to event table
- Loading branch information
Showing
2 changed files
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
orcid-persistence/src/main/resources/db/updates/create_event_indexes.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<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-ORCID-INDEX" author="Daniel Palafox"> | ||
<preConditions onFail="MARK_RAN"> | ||
<not> | ||
<indexExists indexName="event_orcid_index" tableName="event"/> | ||
</not> | ||
</preConditions> | ||
<sql>create index event_orcid_index on event(orcid);</sql> | ||
</changeSet> | ||
|
||
<changeSet id="EVENT-CLIENT-ID-INDEX" author="Daniel Palafox"> | ||
<preConditions onFail="MARK_RAN"> | ||
<not> | ||
<indexExists indexName="event_client_id_index" tableName="event"/> | ||
</not> | ||
</preConditions> | ||
<sql>create index event_client_id_index on event(client_id);</sql> | ||
</changeSet> | ||
|
||
<changeSet id="EVENT-TYPE-INDEX" author="Daniel Palafox"> | ||
<preConditions onFail="MARK_RAN"> | ||
<not> | ||
<indexExists indexName="event_type_index" tableName="event"/> | ||
</not> | ||
</preConditions> | ||
<sql>create index event_type_index on event(event_type);</sql> | ||
</changeSet> | ||
</databaseChangeLog> |