Attempting to enable the Commerce plugin via the control panel gives a 'Database Exception' error, meaning it cannot be uninstalled.
I believe this could be linked to the fact that the site was previously on Craft 4 with the plugin installed and enabled, however, some time prior to the upgrade to Craft 5 the plugin was disabled and the upgrade then carried out. Would this have meant the Commerce plugin missed out on some important DB migrations?
With the site now successfully running Craft 5, the plugin cannot be re-enabled without throwing the below exception. I'm doing this in an attempt to completely remove Commerce, so if there is a workaround that would allow the plugin to be removed a different way that would be a solution.
The DB also has many additional tables with sequential numbers such as 'p_co_old10', 'p_co_old11', 'p_co_old12' and 'p_com_old1', 'p_com_old2', 'p_com_old3', etc.
What happened?
Description
Attempting to enable the Commerce plugin via the control panel gives a 'Database Exception' error, meaning it cannot be uninstalled.
I believe this could be linked to the fact that the site was previously on Craft 4 with the plugin installed and enabled, however, some time prior to the upgrade to Craft 5 the plugin was disabled and the upgrade then carried out. Would this have meant the Commerce plugin missed out on some important DB migrations?
With the site now successfully running Craft 5, the plugin cannot be re-enabled without throwing the below exception. I'm doing this in an attempt to completely remove Commerce, so if there is a workaround that would allow the plugin to be removed a different way that would be a solution.
The DB also has many additional tables with sequential numbers such as 'p_co_old10', 'p_co_old11', 'p_co_old12' and 'p_com_old1', 'p_com_old2', 'p_com_old3', etc.
Stacktrace
Steps to reproduce
Expected behavior
Plugin should re-enable to allow uninstall.
Actual behavior
DB exception thrown.
Craft CMS version
5.4.9
Craft Commerce version
5.2.1
PHP version
No response
Operating system and version
No response
Database type and version
No response
Image driver and version
No response
Installed plugins and versions
-