Fixing database issues after website upgrade

The issue

Sometimes the database migration can failed during upgrades due to database privileges or due to database migration files missing during upgrade. Note that the migration files (available in /database/upgrade/{VERSION}/ folder) missing is possible when you don't put your website under maintenance before starting the upgrade process.

Solution

Consider that your website is running on the version 1.0.0 that is the current version of the application, and we release a new version 1.0.1. If after you have upgraded your website to the version 1.0.1, you facing database issues, so you have to follow these step to solve that issue:

APP_VERSION=1.0.0​