I am building a Spring 3 MVC app that uses a MySQL database and have recently integrated Flyway into the solution to manage the database migrations. I have successfully conf
I had a similar issue, although I'm not using Spring. I'm adding H2 in-memory DB for tests on top of an existing setup with jOOQ + Flyway + PostgreSQL.
The solution for me was a combination of changes:
;DATABASE_TO_UPPER=false
to the startup URLCREATE SCHEMA IF NOT EXISTS public;
(I didn't need to use the backticks).SET SCHEMA public;
after schema creation. Note that I wasn't able to add ;SCHEMA=public
to the init URL, because this was throwing an error before the schema was being created. Alternatively:
;DATABASE_TO_UPPER=false;INIT=CREATE SCHEMA IF NOT EXISTS public;
to the startup URL.SET SCHEMA public;
to your init SQL script.