quick question for you.
i have a changeset <changeset author="name" context ="test" label="label1".....>
now when i execute liquibase updateSQL --context="test" --label="label1"
it runs fine and generates the liquibase SQL files just fine. and. generates file label1-test.sql ( i have given liquibase file name to be like label-context.sql)
But when i execute liquibase updateSQL --context="absurd" label="label1"
it generates file with name label1-absurd.sql
is there a way I can ask liquibase to not generate the file if the mentioned context does not exist in the changeset?
in the second command, you don’t have the – before the label. Does it persist if you add that? Also, can you make sure you’re copying/pasting directly from the command line and using the code block formatting? It makes it easier for folks to parse the information and review for typos and other small syntax errors.
@Pooja updatesql does not create a filename, so not sure where you are getting this file from.
updatesql will always produce output. Whether it is just locking the table and then unlocking the table. updatesql will show you the sql that it will run on the database as if you were running liquibase update directly.
Hi @ramk - Thanks for reaching out. These forums are community supported, so it often takes a week or longer to get an answer to your question, as most of the folks sharing their knowledge are volunteers helping out on this Open Source project. I’ll take a look at that question, but please keep your replies relevant to the post you are responding to.