Skip to content

Duplicate column name on H2 with MODE=PostgreSQL #21

Closed
@kressi

Description

@kressi

Running migrations on H2 with MODE=PostgreSQL causes following exception.

io.r2dbc.spi.R2dbcBadGrammarException: Duplicate column name "?column?"; SQL statement:
insert into "migrations_lock"(id, locked) select * from (select 1, false) x  where not exists(select * from "migrations_lock") [42121-214]

I am not sure whether that's an issue of r2dbc-migrate or r2dbc-h2. I don`t understand why that issue occurs.

  • Versions
    • name.nkonev.r2dbc-migrate:r2dbc-migrate-spring-boot-starter:2.7.6
    • org.springframework.boot:spring-boot-starter-parent:2.7.1
  • Complete logs
  • application.yml

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions