Quantcast
Channel: Liquibase Forums
Viewing all articles
Browse latest Browse all 2993

Upgrading from 2.0.5 to 3.2.0 - Problem with preConditions ?

$
0
0
I already saw in the forum one similar post, but i just created that one to show my scenario. I think the problem, is in the version 3.2.0 the preConditions are not working as I expected.

With the version 3.2.0 the following chaneSet is not working as should be:
  1. <changeSet author="e-ballo" id="RENAME_TEMPLATE_PACKAGE_PRICE_IDS">
  2. <preConditions onFail="MARK_RAN">
  3. <columnExists schemaName="ATI" tableName="ATI_SCENARIO_TEMPLATE_PACKAGES" columnName="PRICE_IDS"/>
  4. </preConditions>
  5.          <renameColumn schemaName="ATI" tableName="ATI_SCENARIO_TEMPLATE_PACKAGES" oldColumnName="PRICE_IDS" newColumnName="PROD_PRICE_MAP_IDS"/>
  6. </changeSet>
After execute this code in the databasechangelog table I get exectype: MARK_RAN, and of course the table it is not renamed.

If I only change the liquibase.jar and I run it with the version 2.0.5 all is working fine, and i get exectype : EXECUTED



Viewing all articles
Browse latest Browse all 2993

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>