Skip to content
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 id Primary Key in Migration #65

Open
jolonf opened this issue Oct 2, 2022 · 0 comments
Open

Duplicate id Primary Key in Migration #65

jolonf opened this issue Oct 2, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@jolonf
Copy link

jolonf commented Oct 2, 2022

I created a new table, and not realising an id column is already created, created a new id column and selected primary key. After realising my error I deleted the id column I just created but in the migration it still had both id columns in the Primary Key:

CREATE TABLE art (
    id UUID DEFAULT uuid_generate_v4() NOT NULL,
    PRIMARY KEY(id, id)
);
@mpscholten mpscholten added the bug Something isn't working label Oct 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants