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

        admin Paul Phillips created issue -
        jonathan Jonathan Reissmueller made changes -
        Field Original Value New Value
        Fix Version/s 4.12.0-b1 [ 11502 ]
        Fix Version/s 4.11.0-b1 [ 11401 ]
        jonathan Jonathan Reissmueller made changes -
        Sprint 4.12.0 Sprint 1 [ 112 ]
        jonathan Jonathan Reissmueller made changes -
        Rank Ranked lower
        jonathan Jonathan Reissmueller made changes -
        Sprint 4.12.0 Sprint 1 [ 112 ]
        jonathan Jonathan Reissmueller made changes -
        Rank Ranked higher
        jonathan Jonathan Reissmueller made changes -
        Story Points 3
        jonathan Jonathan Reissmueller made changes -
        Sprint 4.12.0 Sprint 1 [ 112 ]
        jonathan Jonathan Reissmueller made changes -
        Rank Ranked lower
        jonathan Jonathan Reissmueller made changes -
        Rank Ranked higher
        abdy Abdy Franco made changes -
        Assignee Abdy Franco [ abdy ]
        Automated transition triggered when Abdy Franco created a branch in Stash -
        Status Open [ 1 ] In Progress [ 3 ]
        abdy Abdy Franco made changes -
        Remaining Estimate 0 minutes [ 0 ]
        Time Spent 47 minutes [ 2820 ]
        Worklog Id 13783 [ 13783 ]
        Automated transition triggered when Abdy Franco created pull request #16 in Stash -
        Status In Progress [ 3 ] In Review [ 5 ]
        Resolution Fixed [ 1 ]
        abdy Abdy Franco made changes -
        Time Spent 47 minutes [ 2820 ] 3 hours, 6 minutes [ 11160 ]
        Worklog Id 13785 [ 13785 ]
        Automated transition triggered when Jonathan Reissmueller merged pull request #16 in Stash -
        Status In Review [ 5 ] Closed [ 6 ]
        jonathan Jonathan Reissmueller made changes -
        Sprint 4.12.0 Sprint 1 [ 112 ]

          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