-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Duplicate column name on H2 with MODE=PostgreSQL #21
Comments
Try to force postgres dialect, e. g. spring:
r2dbc:
url: r2dbc:h2:mem:///testdb;MODE=PostgreSQL
username: sa
password: ''
r2dbc:
migrate:
dialect: POSTGRESQL
resources-paths:
- classpath:/db/migration/*.sql |
Now I get a syntax error instead of duplicate column.
|
You can play with tuning dialect or (I recommend) to use testcontainers as I did https://github.com/nkonev/r2dbc-migrate-example, because testing with testcontainers runs real Postgres. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Running migrations on H2 with
MODE=PostgreSQL
causes following exception.I am not sure whether that's an issue of r2dbc-migrate or r2dbc-h2. I don`t understand why that issue occurs.
name.nkonev.r2dbc-migrate:r2dbc-migrate-spring-boot-starter:2.7.6
org.springframework.boot:spring-boot-starter-parent:2.7.1
The text was updated successfully, but these errors were encountered: