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

Fixed migration and seeding issues, resolved foreign key constraints #621

Open
wants to merge 4 commits into
base: dev
Choose a base branch
from

Conversation

cyrilmano
Copy link

​Fix Migration & Seeding Issues

Description

This PR fixes migration and seeding issues caused by foreign key constraints and unique constraints in the database.

Related Issue (Link to Github issue)

You will encounter the error when you try to run the command php artisan migrate:seed

Motivation and Context

This change ensures that database migrations and seeders work correctly without integrity constraint violations, allowing a smooth setup of the development environment.

How Has This Been Tested?

  1. Ran php artisan migrate:fresh --seed multiple times to confirm that it works without errors.
  2. Verified seeded data in the database using php artisan tinker.
  3. Ensured that all dependent tables were correctly populated.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My code follows the code style of this project.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

ArticlesTabSeeder
BlogSeederIssue
SeedingIssue
BlogSeederIssue
SeedingIssue1
SeedingIssue
SeedingIssue1

@bhimbho
Copy link
Contributor

bhimbho commented Feb 27, 2025

PR format not followed

@bhimbho bhimbho self-requested a review February 27, 2025 19:38
Copy link

@samuelogboye samuelogboye left a comment

Choose a reason for hiding this comment

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

LGTM

@cyrilmano cyrilmano requested a review from bhimbho March 2, 2025 19:19
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