Implement a dynamic schema in Liquibase Yaml format

I’m Liquibase new user. I need help, How to give and implement a dynamic schema in Liquibase Yaml format.

example below:

changeSet:
id: 1
author: xyz
changes:
- createTable:
tableName: Table1
schemaName: schema1/schema2/schema3
columns:
- column:
name: id
type: int

Thanks,
Simhadri.

Hi @Simhadri . You should be able to use ${schemaName} instead of the actual schema name in the yaml file and then pass that parameter on the command line or however you are running liquibase.
https://docs.liquibase.com/concepts/basic/changelog-property-substitution.html

1 Like

Thanks @MikeOlivas .