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

bug fix #4018

Merged
merged 5 commits into from
Jan 29, 2025
Merged

bug fix #4018

merged 5 commits into from
Jan 29, 2025

Conversation

OleksiiKH0240
Copy link
Collaborator

Combining a reference in a table schema (foreign key constraint) with a one-to-many relation for the same two tables defined in the constraint causes the seeder to duplicate these relations and enter an infinite loop.

Added a check for duplicated relations (defaulting to accepting the foreign key constraint over the one-to-many relation) and a warning.

@AndriiSherman
Copy link
Member

Please bump version and add release notes

@AndriiSherman AndriiSherman merged commit 3ded70f into drizzle-team:beta Jan 29, 2025
7 checks passed
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