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 the Model Relationship #10

Open
5 tasks
lisa-fehr opened this issue Oct 4, 2021 · 0 comments
Open
5 tasks

Fix the Model Relationship #10

lisa-fehr opened this issue Oct 4, 2021 · 0 comments

Comments

@lisa-fehr
Copy link
Owner

lisa-fehr commented Oct 4, 2021

The original database isn't Laravel friendly.

I never ended up tagging an image with more than one tag.
uber_tags should have a direct relationship to uber_gallery. No more uber_tag_assoc silliness.

  • Make a migration to add tag_id to the uber_gallery table
  • Make a migration to move the tag associations from the uber_tag_assoc table
  • Fix the tag relationship on App\Models\UberGallery by using the tag_id column
  • Remove App\Models\UberTagAssoc
  • Add a migration to remove the uber_tag_assoc table

Screen Shot 2021-10-04 at 4 40 04 PM
Screen Shot 2021-10-04 at 4 52 33 PM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant