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

Fix getTableConfig not returning all the primary keys #1710

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Angelelz
Copy link
Collaborator

close #1285

  • Added a loop through all columns looking for primary keys to add it to the primary key array.
  • I also added the unique constraints found in the columns to the list of constraints.
  • Added integration tests.

It seems like the .primarykey() method on the column builders was not really doing anything, unless drizzle-kit was getting the primary key directly from the column.config.primaryKey.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG]: getTableConfig primaryKeys doesn't return all primary key columns
1 participant