Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Split index changelog in 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Eng committed Jun 2, 2015
1 parent d1c7778 commit 01da786
Showing 1 changed file with 81 additions and 21 deletions.
102 changes: 81 additions & 21 deletions zanata-war/src/main/resources/db/changelogs/db.changelog-3.7.xml
Expand Up @@ -48,46 +48,106 @@
<customChange class="org.zanata.liquibase.custom.ChangePositionalResIdToContentHash" />
</changeSet>

<changeSet id="2" author="pahuang@redhat.com">
<comment>add indexes to HTextFlowTargetHistory and HTextFlowTarget table</comment>
<changeSet id="3-split" author="aeng@redhat.com">
<preConditions onFail="MARK_RAN">
<not>
<changeSetExecuted id="3" author="aeng@redhat.com" changeLogFile="db/changelogs/db.changelog-3.7.xml"/>
</not>
</preConditions>
<comment>Add revisionComment to HTextFlowTarget</comment>
<addColumn tableName="HTextFlowTarget">
<column name="revisionComment" type="longtext">
<constraints nullable="true" />
</column>
</addColumn>
</changeSet>

<changeSet id="4" author="aeng@redhat.com">
<preConditions onFail="MARK_RAN">
<not>
<changeSetExecuted id="3" author="aeng@redhat.com" changeLogFile="db/changelogs/db.changelog-3.7.xml"/>
</not>
</preConditions>
<comment>Add revisionComment to HTextFlowTargetHistory</comment>
<addColumn tableName="HTextFlowTargetHistory">
<column name="revisionComment" type="longtext">
<constraints nullable="true" />
</column>
</addColumn>
</changeSet>

<changeSet id="2-split" author="pahuang@redhat.com">
<preConditions onFail="MARK_RAN">
<not>
<changeSetExecuted id="2" author="pahuang@redhat.com" changeLogFile="db/changelogs/db.changelog-3.7.xml"/>
</not>
</preConditions>
<comment>add lastChanged index to HTextFlowTargetHistory table</comment>
<createIndex tableName="HTextFlowTargetHistory" indexName="Idx_lastChanged">
<column name="lastChanged"/>
</createIndex>
<createIndex tableName="HTextFlowTargetHistory" indexName="Idx_TranslatedBy">
<column name="reviewed_by_id"/>
</createIndex>
</changeSet>

<changeSet id="3-updated" author="pahuang@redhat.com">
<preConditions onFail="MARK_RAN">
<not>
<changeSetExecuted id="2" author="pahuang@redhat.com" changeLogFile="db/changelogs/db.changelog-3.7.xml"/>
</not>
</preConditions>
<comment>add reviewedById index to HTextFlowTargetHistory table</comment>
<createIndex tableName="HTextFlowTargetHistory" indexName="Idx_ReviewedBy">
<column name="reviewed_by_id"/>
</createIndex>
</changeSet>

<changeSet id="4" author="pahuang@redhat.com">
<preConditions onFail="MARK_RAN">
<not>
<changeSetExecuted id="2" author="pahuang@redhat.com" changeLogFile="db/changelogs/db.changelog-3.7.xml"/>
</not>
</preConditions>
<comment>add translatedById index to HTextFlowTargetHistory table</comment>
<createIndex tableName="HTextFlowTargetHistory" indexName="Idx_TranslatedBy">
<column name="translated_by_id"/>
</createIndex>
</changeSet>

<changeSet id="5" author="pahuang@redhat.com">
<preConditions onFail="MARK_RAN">
<not>
<changeSetExecuted id="2" author="pahuang@redhat.com" changeLogFile="db/changelogs/db.changelog-3.7.xml"/>
</not>
</preConditions>
<comment>add reviewedById index to HTextFlowTarget table</comment>
<createIndex tableName="HTextFlowTarget" indexName="Idx_ReviewedBy">
<column name="reviewed_by_id"/>
</createIndex>
</changeSet>

<changeSet id="3" author="pahuang@redhat.com">
<comment>add indexes to HTextFlowTargetHistory and HTextFlowTarget table</comment>
<changeSet id="6" author="pahuang@redhat.com">
<preConditions onFail="MARK_RAN">
<not>
<changeSetExecuted id="3" author="pahuang@redhat.com" changeLogFile="db/changelogs/db.changelog-3.7.xml"/>
</not>
</preConditions>
<comment>add lastModifiedBy index to HTextFlowTargetHistory table</comment>
<createIndex tableName="HTextFlowTargetHistory" indexName="Idx_lastModifiedBy">
<column name="last_modified_by_id"/>
</createIndex>
</changeSet>

<changeSet id="7" author="pahuang@redhat.com">
<preConditions onFail="MARK_RAN">
<not>
<changeSetExecuted id="3" author="pahuang@redhat.com" changeLogFile="db/changelogs/db.changelog-3.7.xml"/>
</not>
</preConditions>
<comment>add lastModifiedBy index to HTextFlowTarget table</comment>
<createIndex tableName="HTextFlowTarget" indexName="Idx_lastModifiedBy">
<column name="last_modified_by_id"/>
</createIndex>
</changeSet>

<changeSet id="3" author="aeng@redhat.com">
<comment>Add revisionComment to HTextFlowTarget, HTextFlowTargetHistory</comment>
<addColumn tableName="HTextFlowTarget">
<column name="revisionComment" type="longtext">
<constraints nullable="true" />
</column>
</addColumn>
<addColumn tableName="HTextFlowTargetHistory">
<column name="revisionComment" type="longtext">
<constraints nullable="true" />
</column>
</addColumn>
</changeSet>

<!-- TODO Ensure any new 3.7 tables are converted to InnoDB (on dev machines).
See db.changelog-3.6.xml -->

Expand Down

0 comments on commit 01da786

Please sign in to comment.