Please upgrade your database: Run "bin/magento setup:upgrade" from the Magento root directory.
The following modules are outdated: Foo_Bar schema: current version - 1.0.4, required version - 1.0.0
This can happen when...
In this case running bin/magento setup:upgrade does not resolve the issue, and upgrading the database is not really correct (you actually need to downgrade).
@mpchadwick Agreed. +1
While I generally agree the message given in this case is severely misleading, I'd like to make the following remark.
you actually need to downgrade
Wasn't sure whether to laugh or cry tears at this moment. DB downgrade is a potentially destructive oeration (imagine destroying a column having important information in it) and I don't see how is it a good idea to promote something like that in the messages (read: "instructions") given to the user.
IMHO what you most likely need in such a situation is _upgrade the module itself_ (with composer or from repo branch or wherever it's source code is) to the version required by the DB, thus a relevant message should look similar to the following:
Please upgrade your modules: Run "composer install" from the Magento root directory.
The following modules are outdated: Foo_Bar current version - 1.0.0, required version - 1.0.4
@mpchadwick thank you for your feedback.
Please, format this issue according to the Issue reporting guidelines: with steps to reproduce, actual result and expected result.
Please, also identify which version of Magento you are running.
According to contributor guide, tickets without response for two weeks should be closed.
If this issue still reproducible please feel free to create the new one: format new issue according to the Issue reporting guidelines: with steps to reproduce, actual result and expected result and specify Magento version.
BTW This is also a duplicate of #9981.
Internal ticket to track issue progress: MAGETWO-80225
Hi @mpchadwick. Thank you for your report.
The issue has been fixed in magento-engcom/magento2ce#1353 by @magento-engcom-team in 2.3-develop branch
Related commit(s):
The fix will be available with the upcoming 2.3.0 release.