Courses

How to Structure Databases in Laravel

How to Safely Change DB Relations in Live Laravel Project?

Previous: Column Indexes: when/why/how to Apply Them
avatar

This is a great topic. I haven't come accross alot of lessons about dealing with real world senarios.

avatar
You can use Markdown
avatar

Hi, could you provide the link to source code before refactoring to "one article belongs to many categories" and after that? Thank you

avatar

Unfortunately, I don't have the source code for this. For many courses in the past, I just did experiments and didn't save the source code. In recent courses, I do provide links to GitHub.

avatar
You can use Markdown
avatar

Hey Povilas, I am not a big fun of doing data migration inside schema migrations. I think it is more safe to change relationship in steps and not inside one migration. What is your thought about that? Thank you in advance.

avatar

That really depends on your personal preference. Our team usually does them inside one migration and we did not encounter many issues with that approach yet

avatar
You can use Markdown
avatar
You can use Markdown