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

Re : Liquibase preconditions not working

$
0
0
I did the same that you want to do with a view, and for me it works:

Maybe gives you some idea:
  1. <changeSet author="e-ballo" id="DropViewsAndcreateSynonyms" context="dev,int,uat,prod">
  2. <preConditions onFail="CONTINUE" >
  3. <viewExists viewName="PMV_PACKAGE_ITEMS" schemaName="ZON"/>
  4. <viewExists viewName="PMV_SUBSPLAN_INSTALLTYPES" schemaName="ZON"/>
  5. </preConditions>
  6. <dropView schemaName="ZON" viewName="PMV_PACKAGE_ITEMS"  />
  7. <dropView schemaName="ZON" viewName="PMV_SUBSPLAN_INSTALLTYPES"  />
  8. <sqlFile path="environment-synonyms.sql" relativeToChangelogFile="true" splitStatements="true" stripComments="true"/>
  9. </changeSet>
I hope it helps

Viewing all articles
Browse latest Browse all 2993

Trending Articles



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