change order of instructions, fix issue with mysql (#302)

This commit is contained in:
Athou
2013-06-17 11:55:23 +02:00
parent 05f80d6765
commit fa2731861e

View File

@@ -3,13 +3,6 @@
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 author="athou" id="drop-fes-index">
<preConditions onFail="MARK_RAN" onFailMessage="index not found, skip drop index">
<indexExists tableName="FEEDENTRYSTATUSES" indexName="subscription_id" />
</preConditions>
<dropIndex tableName="FEEDENTRYSTATUSES" indexName="subscription_id" />
</changeSet>
<changeSet author="athou" id="recreate-fes-index">
<preConditions onFail="MARK_RAN" onFailMessage="index already exists">
<not>
@@ -23,6 +16,13 @@
<column name="read_status" />
</createIndex>
</changeSet>
<changeSet author="athou" id="drop-fes-index">
<preConditions onFail="MARK_RAN" onFailMessage="index not found, skip drop index">
<indexExists tableName="FEEDENTRYSTATUSES" indexName="subscription_id" />
</preConditions>
<dropIndex tableName="FEEDENTRYSTATUSES" indexName="subscription_id" />
</changeSet>
<changeSet author="athou" id="drop-sequences">
<preConditions onFail="MARK_RAN" onFailMessage="table does not exist">