I want to use a custom sql bracket in Liquibase that looks like this:
<sql>
CREATE TRIGGER insert_${param1}_trigger
BEFORE INSERT ON ${param1}
FOR EACH ROW BEGIN
SET NEW.created_at = NOW();
SET NEW.updated_at = NOW();
END
</sql>
I would like to call this function in several different changesets and specify param1. I know the inverse functionality is possible because you can specify properties with the <property name="name" value="value"> tag and input the ${name} variable to get the value inserted into the file. However, I am looking to supply the parameter and have the sql above be included in the changeset. Any more general XML or SQL approaches are welcome as well.