drizzle-team / drizzle-team/drizzle-orm

[BUG]: drizzle-kit foreign key names changed from _fk to _fkey suffix

Open
#5,258 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
35.8k
Forks
1.6k
Avg merge
2d 7h
Merged PRs (30d)
4

Description

### Report hasn't been filed before.

- [x] I have verified that the bug I'm about to report hasn't been filed before.

### What version of `drizzle-orm` are you using?

1.0.0-beta.6

### What version of `drizzle-kit` are you using?

1.0.0-beta.6-4414a19

### Other packages

_No response_

### Describe the Bug

When generating migrations including foreign key constraints, drizzle-kit now uses a `_fkey` suffix for the constraint name. Previously it was using a `_fk` suffix. This is problematic for dropping/renaming existing foreign keys created by Drizzle using the `_fk` name convention. Ideally it would just stick with `_fk` for backwards compatibility (plus personally I find the `_fk` naming more idiomatic than `_fkey`).

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.