is it possible to use the parameters which normally can be accessed by ${param} within the sql-Tag? I use the parameters to specify tablespaces and the schema name and so it would be helpful to use it in my custom statements.
Hi,
filtering the sql files and changesets is the way to go. We for example dynamically prepend the schema name for each database object name (create myschema.mytable…) by replacing a “${ds.schema}” token.
Since liquibase is using the classpath while referencing sql files its simple to copy-filter and use the correct version.
After the copy process the same structure exists in the target folder.
Then you can use liquibase on exactly those copied changesets and sql files