Skip to content

HCK-13083: generate FK in delta models inline or separate#168

Merged
VitaliiBedletskyi merged 2 commits intodevelopfrom
HCK-13083
Oct 16, 2025
Merged

HCK-13083: generate FK in delta models inline or separate#168
VitaliiBedletskyi merged 2 commits intodevelopfrom
HCK-13083

Conversation

@AlikRakhmonov
Copy link
Contributor

@AlikRakhmonov AlikRakhmonov commented Oct 16, 2025

Sub-bugHCK-13083 [SQLServer][DeltaModel]: Expected inline FK is generated in a separate statement

Technical details

Generate the foreign key (FK) constraint either inside the CREATE TABLE statement or as a separate ALTER TABLE statement, depending on the selected generation option.

Additionally, collections are sorted based on their relationships to ensure that inline foreign key constraints are not created before their corresponding parent collections.

@sonarqubecloud
Copy link

@VitaliiBedletskyi VitaliiBedletskyi enabled auto-merge (squash) October 16, 2025 13:43
@VitaliiBedletskyi VitaliiBedletskyi merged commit 1e5aee7 into develop Oct 16, 2025
8 checks passed
@VitaliiBedletskyi VitaliiBedletskyi deleted the HCK-13083 branch October 16, 2025 14:35
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.

2 participants