Hi all,
I use Liquibase to update our ‘main’ MySQL databases on each environment as part of a Maven build.
I’m trying to hook up Liquibase and H2 to my Spring application, and run integration tests against it. I The Spring context starts fine, the H2 database appears to start, and Liquibase starts running the changelog (including all the table creates to pre-populate it), but after about 90 structural changes, throws an error saying my “user” table can’t be found when doing a SELECT COUNT(*) id FROM user WHERE id = 885 AND nickname = ‘test’ on it for a precondition.
The odd part is that the user table changeset logs as being run, and subsequent changesets add foreign keys and columns tot he user table without throwing an exception.
Any ideas where I might start to look? I’m new to H2, so maybe I’m missing something obvious there. I’ve got it running in MySQL mode and case sensitivity turned off.
-
Learn
-
Resources
-
Free Tools
OSS Risk Scanner Database DevOps Risk AssessmentCheat Sheets
Snowflake + Liquibase Databricks + Liquibase -
eBooks
6 Liquibase Community Risks & How to Avoid Guide: SOC 2 Compliance at the Database Layer Guide: Quantify the Value of Liquibase Secure -
Comparison Guides
Liquibase vs. Flyway Liquibase vs. Bytebase Liquibase Community vs Liquibase Secure
-
- Quickstart
- Get Started
- Documentation
- University
-
Resources
- Connect
- Contribute
- Join
- Blog