Liquibase generateChangeLog does not output schema
When writing a changeSet to create a table, you can specify the table schema (see here )
If I run
liquibase generateChangeLog
The output contains no schema.
For reference, here's the Liquibase.properties file I'm using:
driver: org.h2.Driver
classpath: h2-1.4.181.jar
url: jdbc:h2:~/test.db
username: sa
password: sa
changeLogFile: baseline.xml
liquibaseCatalogName: LIQUIBASE
liquibaseSchemaName: BAR
defaultSchemaName: BAR
outputDefaultSchema: true
outputDefaultCatalog: true
Output for one of the tables:
<createTable tableName="PRODUCTS">
<column name="ID" type="INT(10)"/>
<column name="CODE" type="VARCHAR(10)"/>
<column name="PRICE" type="DECIMAL(9, 2)"/>
</createTable>
If I wrote this by hand, I would include the schema:
<createTable schemaName="BAR" tableName="PRODUCTS">
<column name="ID" type="INT(10)"/>
<column name="CODE" type="VARCHAR(10)"/>
<column name="PRICE" type="DECIMAL(9, 2)"/>
</createTable>
Is it by design? I am fine using XSLT after the fact.
+3
source to share