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

feat: Disable Foreign before running seeders #652

Closed

Conversation

idehen-divine
Copy link

Modified DatabaseSeeder.php to temporarily disable foreign key checksbefore truncating tables, ensuring smooth database seeding without constraint violations.

Fixes #626

Modified DatabaseSeeder.php to temporarily disable
foreign key checksbefore truncating tables, ensuring
smooth database seeding without constraint violations.

Fixes hngprojects#626
Copy link
Contributor

@bhimbho bhimbho left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dont do this, its a bad code. Infact close the PR

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.

[fix][php]: Disable Foreign Key Checks during truncating before running database seeding
2 participants