Skip to content

Cannot update table "schema_version" because it does not have a replica identity and publishes updates #130

@jackwilsdon

Description

@jackwilsdon

Running tern migrate on a server which is using PostgreSQL publications returns the following error:

ERROR: cannot update table "schema_version" because it does not have a replica identity and publishes updates (SQLSTATE 55000)

golang-migrate gets around this by making version a primary key: https://github.com/golang-migrate/migrate/blob/8b9c5f77128ef93d65a082208a2009a3911fe6d4/database/pgx/v5/pgx.go#L469

I've tested making version a primary key and it seems to work fine.

Happy to open a PR to make version a primary key if this functionality is desired.

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