Details
Description
Update the System Status widget to add a check. We want to know if the file version matches the database. We don't want to check the version in app_controller.php because not every version has a migration. But, we can compare the database version to the latest version in the mappings.php file at /components/upgrades/tasks/mappings.php
If the version does not match, then it should reduce the value in the graph by a substantial amount and indicate with a message that the user must run /admin/upgrade to upgrade the database. We may want to evaluate the version to add an additional check to make sure also that they don't have a database version that doesn't exist anywhere in the mappings file as well, which could indicate another issue like the database is upgraded to a newer version but the files are older.
"Database migrations are pending, please run /admin/upgrade in your browser."
If possible, in the message, maybe we should show the database version they are running and the latest database version in the mappings file if they don't match.. just a thought, may help with support issues.