I need to do some operations (update, delete) depending on whether there is a record with a given id. However, one operation must take place (update) regardless of whether there is a record or not. I will demonstrate this with a simple example in a backend language (Java):
if(simplyObject.getId().equals(1L){
simplyObject.setFieldA(...);
simplyObject.setFieldB(...);}
simplyObject.setFieldC(...);
I`m not proficient in liquibase. I know that there are preConditions, but I think they refer to all operations in a given migration, not to specific ones. Could you please give me a hint how to do this?