we have two different schemas in oracle db and now we are trying to do a sequential order of the changelogs. For ex =: we have a dependency folder where we author sql files. once the files are completed we want to deploy to the oracle db where the two schemas are present. while deploying we want to run some scripts in schema 1 and then schema2 and then again in schema 1. Is there a way to do it?
Good question! Liquibase runs scripts in a folder (using the includeAll tag) in alpha numeric order. So, just order your includes by which folders you want to run alphanumerically, and within those folders make sure your order them alphanumerically.
Thank you for the Answer. Just wanted to confirm. Even if we do it alphanumerically, it will execute all the scripts in that particular folder, but what if I want to do only certain scripts and then do the rest again.
You can organize the scripts within the folder into sub-folders, that are again organized in alpha sub-folder.
Let’s say I have a folder:
I could organize it:
I could then do:
… run whatever else here
Thank you very much, this should work for the current sequence we have right now.