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

fix nullable fields when seeding data #845

Merged
merged 9 commits into from
Oct 20, 2024
Merged

Conversation

kaplanelad
Copy link
Contributor

When using insert_many, it's expected that the schema for each row is the same. For more details, refer to the issue description here.

As a temporary workaround until SeaORM addresses the related issue, I've modified the logic to insert the seed data one row at a time.

@kaplanelad kaplanelad self-assigned this Oct 14, 2024
@kaplanelad kaplanelad merged commit 13bc8c2 into master Oct 20, 2024
17 checks passed
@tyt2y3
Copy link

tyt2y3 commented Dec 24, 2024

Just a heads up, I've released the fix in SeaORM 1.1.3. So this workaround can probably be reverted in the next minor release

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.

3 participants