digitallyinduced / digitallyinduced/thin-backend

Duplicate id Primary Key in Migration

Open
#65 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
1.2k
Forks
30
PR merge metrics
No merged PRs in 30d

Description

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)
);
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.