-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
3 changed files
with
136 additions
and
2 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
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
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,107 @@ | ||
<?xml version="1.1" encoding="UTF-8" standalone="no"?> | ||
<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:ext="http://www.liquibase.org/xml/ns/dbchangelog-ext" xmlns:pro="http://www.liquibase.org/xml/ns/pro" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/pro http://www.liquibase.org/xml/ns/pro/liquibase-pro-4.6.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.6.xsd"> | ||
|
||
<!-- required indexes for log_event to allow faster/more efficient sorting. --> | ||
|
||
<changeSet author="ALA Dev Team" id="1"> | ||
<preConditions onFail="MARK_RAN"> | ||
<not> | ||
<indexExists tableName="log_event" columnNames="month" /> | ||
</not> | ||
</preConditions> | ||
<createIndex indexName="month_idx" tableName="log_event"> | ||
<column name="month"/> | ||
</createIndex> | ||
</changeSet> | ||
|
||
<changeSet author="ALA Dev Team" id="2"> | ||
<preConditions onFail="MARK_RAN"> | ||
<not> | ||
<indexExists tableName="log_event" columnNames="log_event_type_id" /> | ||
</not> | ||
</preConditions> | ||
<createIndex indexName="log_event_type_id_idx" tableName="log_event"> | ||
<column name="log_event_type_id"/> | ||
</createIndex> | ||
</changeSet> | ||
|
||
<changeSet author="ALA Dev Team" id="3"> | ||
<preConditions onFail="MARK_RAN"> | ||
<not> | ||
<indexExists tableName="log_event" columnNames="log_source_type_id" /> | ||
</not> | ||
</preConditions> | ||
<createIndex indexName="log_source_type_id_idx" tableName="log_event"> | ||
<column name="log_source_type_id"/> | ||
</createIndex> | ||
</changeSet> | ||
|
||
<changeSet author="ALA Dev Team" id="4"> | ||
<preConditions onFail="MARK_RAN"> | ||
<not> | ||
<indexExists tableName="log_event" columnNames="log_reason_type_id" /> | ||
</not> | ||
</preConditions> | ||
<createIndex indexName="log_reason_type_id_idx" tableName="log_event"> | ||
<column name="log_reason_type_id"/> | ||
</createIndex> | ||
</changeSet> | ||
|
||
<changeSet author="ALA Dev Team" id="5"> | ||
<preConditions onFail="MARK_RAN"> | ||
<not> | ||
<indexExists tableName="log_event" columnNames="user_email" /> | ||
</not> | ||
</preConditions> | ||
<createIndex indexName="user_email_idx" tableName="log_event"> | ||
<column name="user_email"/> | ||
</createIndex> | ||
</changeSet> | ||
|
||
<changeSet author="ALA Dev Team" id="6"> | ||
<preConditions onFail="MARK_RAN"> | ||
<not> | ||
<indexExists tableName="log_event" columnNames="source" /> | ||
</not> | ||
</preConditions> | ||
<createIndex indexName="source_idx" tableName="log_event"> | ||
<column name="source"/> | ||
</createIndex> | ||
</changeSet> | ||
|
||
<!-- required indexes for log_detail to allow faster/more efficient sorting.--> | ||
|
||
<changeSet author="ALA Dev Team" id="7"> | ||
<preConditions onFail="MARK_RAN"> | ||
<not> | ||
<indexExists tableName="log_detail" columnNames="entity_type" /> | ||
</not> | ||
</preConditions> | ||
<createIndex indexName="entity_type_idx" tableName="log_detail"> | ||
<column name="entity_type"/> | ||
</createIndex> | ||
</changeSet> | ||
|
||
<changeSet author="ALA Dev Team" id="8"> | ||
<preConditions onFail="MARK_RAN"> | ||
<not> | ||
<indexExists tableName="log_detail" columnNames="entity_uid" /> | ||
</not> | ||
</preConditions> | ||
<createIndex indexName="entity_uid_idx" tableName="log_detail"> | ||
<column name="entity_uid"/> | ||
</createIndex> | ||
</changeSet> | ||
|
||
<changeSet author="ALA Dev Team" id="9"> | ||
<preConditions onFail="MARK_RAN"> | ||
<not> | ||
<indexExists tableName="log_detail" columnNames="record_count" /> | ||
</not> | ||
</preConditions> | ||
<createIndex indexName="record_count_idx" tableName="log_detail"> | ||
<column name="record_count"/> | ||
</createIndex> | ||
</changeSet> | ||
|
||
</databaseChangeLog> |