Skip to content

Migration fails for tables without a primary key #25

Open
@mightybyte

Description

@mightybyte

For tables without a primary key, beam-automigrate tries to run the following SQL:

ALTER TABLE my_table ADD CONSTRAINT my_table_pkey PRIMARY KEY ();

This is invalid SQL because there is nothing in the parentheses, so the migration fails.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions