Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Schema version table creation fails with H2 in Oracle mode #2436
Which version and edition of Flyway are you using?
If this is not the latest version, can you reproduce the issue with the latest one as well?
(Many bugs are fixed in newer releases and upgrading will often resolve the issue)
Which client are you using? (Command-line, Java API, Maven plugin, Gradle plugin)
Which database are you using (type & version)?
H2 1.4.197 in Oracle mode
Which operating system are you using?
What did you do?
(Please include the content causing the issue, any relevant configuration settings, the SQL statement that failed (if relevant) and the command you ran.)
I am using flyway with an H2 database in Oracle mode. My JDBC url is
Creating the schema version table fails with the following error:
In the case of an H2 database a special table created marker is inserted because H2 cannot lock empty tables. In the insert statement (well, actually in the
Running flyway against a real Oracle database does work because this script won't be used there. The above script is generated in
What did you expect to see?
That my migrations are executed.
What did you see instead?
The above error during initialization of flyway.