I want to upgrade the Magento cloud version from 2.2.4 to 2.3.1. We cloned a branch to the local environment and then upgraded the site. Running the site in the local and it's confirmed that the version is upgraded to 2.3.1. We moved the required files from GitHub to the cloud rebuild branch. The version of the file is 2.3.1 but we are getting an error that DB is not upgraded.
"{"0":"Please upgrade your database: Run \"bin/magento setup:upgrade\" from the Magento root directory.\n"
As we cannot run setup upgrade, not sure how to resolve this issue. Can anyone help us with this?