Liquibase Context optional attribute

I am using the context field as below in changeset file 001_create_tables.sql
–liquibase formatted sql

–changeset testuser:001_REF_TABLES_ver_1_0 (runInTransaction:true runonChange:false splitStatements:false endDelimiter:; context=sandbox,dev,test,qa)
… rest of change log follows…

and I am using file and trying to use context like below , since the changeset does not have temp as context, I expect the change set 001 will not be executed but it is. Can anyone suggest if this is expected behavior and is this correct way to invoke context ?

liquibase_dbcode>liquibase update -Dcontext=temp

I think the -Dcontext=temp needs to go before the update statement.

1 Like