Uploaded image for project: 'Blesta Core'
  1. Blesta Core
  2. CORE-3613

System Status: Add a check to see if database version is equal to latest mapping version

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 4.9.0
    • Fix Version/s: 4.12.0-b1
    • Component/s: Plugins
    • Labels:
      None

      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.

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            abdy Abdy Franco
            Reporter:
            admin Paul Phillips
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:
              Fix Release Date:
              17/Sep/20

              Time Tracking

              Estimated:
              Original Estimate - Not Specified
              Not Specified
              Remaining:
              Remaining Estimate - 0 minutes
              0m
              Logged:
              Time Spent - 3 hours, 6 minutes
              3h 6m