mirror of
https://github.com/corda/corda.git
synced 2025-03-20 11:05:27 +00:00
Fix Liquibase quoting strategy for PostgreSQL to follow Corda convention. In Liquibase for Postgres if schema name has uppercase or lowercase characters only then Liquibase would send it without double quotes and effectively make them lowercase. Alter Postgres Liquibase dialect to wrap schema names in double quotes. This allows e.g. schemaName=ALICE be send as "ALICE" by Liquibase. Corda persistence was already wrapping with double quotes, but certain cases in Liquibase were not following this. The result was that SQL run by Liquibase couldn't find schema (e.g. select ALICE.tablename ... in Postgres matched alice schema name not ALICE one). The fix enables one integration test to be run now against standalone databases.