How to sync code changes with database migrations?

  database-migration, laravel

Let’s say I want to do an update to my web application. This update includes both PHP code changes and some Database migrations as well. The new version of the code requires the new version of the Database structure. How do you perform this update such that you don’t have your app in a state where only either db or the code is updated but not the other one, while keeping downtime to a minimum?

Source: Laravel

Leave a Reply