Laravel Crash Course - Using Migration

Поделиться
HTML-код
  • Опубликовано: 24 мар 2021
  • Essentially you could create your tables using any SQL client tool such as php myadmin, tableplus, sequal pro or other tools.
    Although using them is more convenient, one drawback is that we don't know history that we made in our database.
    Database migrations are like version control for our database. So like source code, our database structure may changes during our development. We may add new table, add new column to a table, remove column from a table and so on. Database migration will keep track all of changes that occurred in our database.
    So by making use database migration you don't need to remember what changes that you made in your database. And if you're working with team then database migration allows you and team to have same database structure so that it will prevent unwanted error during development.

Комментарии •