You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running setup:upgrade, on the below mentioned environment, throws following output and breaks when upgrading modules: Column definition "order_id" and reference column definition "entity_id" are different in tables "sales_order_tax_scheme" and "sales_order"
Environment encountered on :
Magento 2.3.7-p4
mysql Ver 15.1 Distrib 10.3.38-MariaDB
PHP 7.4.33
Debug findings by dumping from vendor/magento/framework/Setup/Declaration/Schema/Declaration/ValidationRules/IncosistentReferenceDefinition.php:assertDefinitionEqual() checks:
Running
setup:upgrade
, on the below mentioned environment, throws following output and breaks when upgrading modules:Column definition "order_id" and reference column definition "entity_id" are different in tables "sales_order_tax_scheme" and "sales_order"
Environment encountered on :
Debug findings by dumping from
vendor/magento/framework/Setup/Declaration/Schema/Declaration/ValidationRules/IncosistentReferenceDefinition.php:assertDefinitionEqual()
checks:BTW: this method/file also contained another bug that is present until M2.4.3: magento/magento2#32309
So it all comes down to this M2.3/M2.4 change noticed here: https://magento.stackexchange.com/questions/330646/declarative-schema-uses-padding-in-2-3-gone-in-2-4-do-we-have-to-use-it
For the moment, I 'fixed' it by adding
padding="10"
intodb_schema.xml
:but I don't know if this would break on environments with MySQL8 or MariaDB10.4 as hinted by the core changing commit title: magento/magento2@159b377
The text was updated successfully, but these errors were encountered: