-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: allow explicitly named primary keys, foreign keys, and indices (#…
…8900) * feat: add constraintName to JoinColumn Add a constraintName to JoinColumn decorators to allow specifying foreignKey name. Use constraintName when building JoinTable entities as well. Partially solves: #1355 * test: add tests for constraintNames on JoinColumn * docs: add constraintName documentation to JoinColumn and JoinTable * test: update snapshot in 5444 test Add constraintName property with correct variable undefined to snapshot in tests for issue 5444. * prettier * added support for custom FK name in Sqlite; added test; * removed .only * fixed FK constraint renaming on table/column rename * minor fix * fixed @unique and @Index constraints renaming on table/column rename * working on constraint name support for PK * replaced `constraintName` with `primaryKeyConstraintName` and `foreignKeyConstraintName` * fixed failing test * working on constraint name support for PK * updated docs Co-authored-by: Matthijs Hatzmann <matthijs.hatzmann@tradecast.eu>
- Loading branch information
1 parent
9f8429f
commit 78df84c
Showing
43 changed files
with
2,058 additions
and
346 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.