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

Re : Save a view definition as part of a changeset

$
0
0
There is no support in liquibase to save and then recreate a view. There is also not a way to make a new changeSet with a "re-run this changeSet" change. 

If you have the view already defined in your changelog file there isn't anything built in to have that changeSet re-run. I created https://liquibase.jira.com/browse/CORE-1699 for that functionality but it isn't there now.

If you define your view in an external sql file you could originally create it with a <sqlFile> tag and then have a new changeSet with a <sqlFile> that points back to the same file. 

With a little java coding, you could also create a custom change class that looks up the original createView changeSet and re-executes the contained changes.

Nathan

Viewing all articles
Browse latest Browse all 2993

Trending Articles



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