I ran into this while building a custom module
Please upgrade your database: Run "bin/magento setup:upgrade" from the Magento root directory.
When running this command I got another issue:
There are no commands defined in the setup namespace
Is this a know issue or did I something wrong? Thanks
*****EDIT****
app/code/Unreal/Custom/etc/module.xml
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/Module/etc/module.xsd">
<module name="Unreal_Custom" schema_version="2.0.0" setup_version="0.0.2">
</module>
</config>
app/code/Unreal/Custom/registration.php
\Magento\Framework\Component\ComponentRegistrar::register(
\Magento\Framework\Component\ComponentRegistrar::MODULE,
'Unreal_Custom',
__DIR__
);
setup:upgrade
work when your module is removed then the issue lies within your moduleschema_version
is no longer used, please use justsetup_version
. Also, we no longer hardcode the path to the schema, URNs are used. Please see example here: github.com/magento/magento2/blob/develop/app/code/Magento/… Also, can you run the upgrade command again with -vvv flag. It should show stack trace if you are in developer mode.