ddl - Liquibase/PostgreSQL: how to preserve table case correctly? -
i'm using liquibase 3.1.1 create tables in postgresql 9.1. example:
<changeset id="1" author="bob"> <createtable tablename="batches"> <!-- .. -- > </createtable> </changeset>
however, table gets created lowercase name:
# select * "batches"; error: relation "batches" not exist
is there way have liquibase generate ddl preserves case of table (and column etc) names specify in change log?
you can use objectquotingstrategy="quote_all_objects" attribute on changeset attribute or on databasechangelog root element override default logic of "only quote objects have be"
Comments
Post a Comment