Schema related problems with Flyway / Spring and H2 embedded database

前端 未结 6 2052
孤独总比滥情好
孤独总比滥情好 2020-12-15 11:05

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

6条回答
  •  佛祖请我去吃肉
    2020-12-15 12:02

    From http://www.h2database.com/javadoc/org/h2/engine/DbSettings.html:

    databaseToUpper: Database setting DATABASE_TO_UPPER (default: true).

    Database short names are converted to uppercase for the DATABASE() function ... Setting this to "false" is experimental. When set to false, all identifier names (table names, column names) are case sensitive...

    the problem is that by default schema names are in UPPERCASE.

    Solution:

    add ;DATABASE_TO_UPPER=false to database url

提交回复
热议问题