Skip to content

fix(typegen): sort relationships by (fkey name, referenced table) #629

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

Merged
merged 1 commit into from
Nov 1, 2023

Conversation

soedirgo
Copy link
Member

What kind of change does this PR introduce?

Bug fix

What is the current behavior?

Generated relationships with the same foreignKeyName aren't sorted by referencedRelation

What is the new behavior?

Sort by (foreignKeyName, referencedRelation)

Additional context

supabase/cli#1165

@soedirgo soedirgo requested review from a team as code owners October 31, 2023 12:38
Base automatically changed from feat/relationships-is-one-to-one to master November 1, 2023 02:31
@soedirgo soedirgo merged commit 61772da into master Nov 1, 2023
@soedirgo soedirgo deleted the fix/sort-relationships-by-referenced-table branch November 1, 2023 02:32
avallete pushed a commit that referenced this pull request May 13, 2025
…enced-table

fix(typegen): sort relationships by (fkey name, referenced table)
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