cancel
Showing results for 
Search instead for 
Did you mean: 

Error during setup:upgrade in 2.3.5p2 to 2.4.0

Error during setup:upgrade in 2.3.5p2 to 2.4.0

during setup: upgrade

Module 'Magento_PurchaseOrder':
Unable to apply data patch Magento\PurchaseOrder\Setup\Patch\Data\InitPurchaseOrderSalesSequence for module Magento_PurchaseOrder. Original exception message: DDL statements are not allowed in transactions

5 REPLIES 5

Re: Error during setup:upgrade in 2.3.5p2 to 2.4.0

Hello @karuna_khatri 

Please check your MySQL version is compatible with Magento 2.4?

More info: 

https://devdocs.magento.com/guides/v2.3/install-gde/system-requirements-tech.html

Hope this helps you.

Re: Error during setup:upgrade in 2.3.5p2 to 2.4.0

Hi @dragon,

  currently I am using 10.4.11 -MariaDB source 

Re: Error during setup:upgrade in 2.3.5p2 to 2.4.0

Re: Error during setup:upgrade in 2.3.5p2 to 2.4.0

Same here!!! I'm upgrading from 2.3.3... All the requirements are ok...

Re: Error during setup:upgrade in 2.3.5p2 to 2.4.0

got similar errors after clean install
issue solved

https://devdocs.magento.com/guides/v2.4/extension-dev-guide/declarative-schema/migration-commands.ht... 

bin/magento setup:db-declaration:generate-patch [options] <module-name> <patch-name>