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
The problem is that the identifier public
in the statement is lower case and quoted:
CREATE TABLE "public"...(...)
It should be either unquoted:
CREATE TABLE public...(...)
or uppercase:
CREATE TABLE "PUBLIC"...(...)
The reason why H2 returns the lowercase "public" in the database meta data is that the MySQL mode is used in the database URL (;MODE=MySQL
). So not using the MySQL mode might solve the problem.