How to include a file in JSON and YAML?

I know that files can be included in XML changelogs.

/>

Can something similar be done in JSON and YAML? If so, how could this be done?


Cheers!

Hi,


Thanks for asking this question. I have the same need, but for formatted SQL option. If I’ve organized my changelogs in a bunch of SQL files, how do I bring them all together (with out physically merging the files, of course) ?


Thanks

You can do an include with yaml and json, just use:


  1. <span function because I'm trying to keep the SQL as close to what can be ran directly against the database outside of liqubase as possible.


    If you are using formatted SQL, you would need to create a master changelog in xml, json, or yaml and then your formatted sql files from that. That will then run them all as one big file even though they are broken up.


    Nathan