From b668a775f62473ba2455ffc6e8bd15046764ac46 Mon Sep 17 00:00:00 2001 From: Philipp Kitzberger Date: Sun, 26 Oct 2025 14:48:40 +0100 Subject: [PATCH] Fix: Replace deprecated double(11,2) with decimal(10,2) in ext_tables.sql The ext_tables.sql file used the deprecated MySQL syntax `double(11,2)` for decimal fields, which causes constant schema migration prompts when running DB compare. MySQL/MariaDB interprets `double(11,2)` ambiguously, and Doctrine DBAL schema comparison detected a type mismatch between the defined schema and what TYPO3 generates from TCA configuration. The TCA defines these fields as `type => 'number'` with `format => 'decimal'`, which TYPO3's DefaultTcaSchema class converts to decimal(10,2). This change replaces all occurrences of `double(11,2)` with `decimal(10,2)` to align with TYPO3's schema generation and eliminate the persistent migration warnings. Affected fields: - tx_cart_domain_model_order_item: gross, net, total_gross, total_net - tx_cart_domain_model_order_taxclass: calc - tx_cart_domain_model_order_tax: tax - tx_cart_domain_model_order_product: price, discount, gross, net, tax - tx_cart_domain_model_order_discount: gross, net, tax - tx_cart_domain_model_order_shipping: gross, net, tax - tx_cart_domain_model_order_payment: gross, net, tax - tx_cart_domain_model_coupon: discount, cart_min_price --- ext_tables.sql | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/ext_tables.sql b/ext_tables.sql index acc70928..c9e6a76b 100644 --- a/ext_tables.sql +++ b/ext_tables.sql @@ -23,10 +23,10 @@ CREATE TABLE tx_cart_domain_model_order_item ( currency_code varchar(255) DEFAULT '' NOT NULL, currency_sign varchar(255) DEFAULT '' NOT NULL, currency_translation varchar(255) DEFAULT '' NOT NULL, - gross double(11,2) DEFAULT '0.00' NOT NULL, - net double(11,2) DEFAULT '0.00' NOT NULL, - total_gross double(11,2) DEFAULT '0.00' NOT NULL, - total_net double(11,2) DEFAULT '0.00' NOT NULL, + gross decimal(10,2) DEFAULT '0.00' NOT NULL, + net decimal(10,2) DEFAULT '0.00' NOT NULL, + total_gross decimal(10,2) DEFAULT '0.00' NOT NULL, + total_net decimal(10,2) DEFAULT '0.00' NOT NULL, tax int(11) unsigned DEFAULT '0' NOT NULL, total_tax int(11) unsigned DEFAULT '0' NOT NULL, @@ -81,7 +81,7 @@ CREATE TABLE tx_cart_domain_model_order_taxclass ( title varchar(255) DEFAULT '' NOT NULL, value varchar(255) DEFAULT '' NOT NULL, - calc double(11,2) DEFAULT '0.00' NOT NULL, + calc decimal(10,2) DEFAULT '0.00' NOT NULL, INDEX `parent` (pid), INDEX `t3ver_oid` (t3ver_oid,t3ver_wsid), ); @@ -93,7 +93,7 @@ CREATE TABLE tx_cart_domain_model_order_tax ( item int(11) unsigned DEFAULT '0' NOT NULL, record_type varchar(255) DEFAULT '' NOT NULL, - tax double(11,2) DEFAULT '0.00' NOT NULL, + tax decimal(10,2) DEFAULT '0.00' NOT NULL, tax_class int(11) unsigned DEFAULT '0' NOT NULL, INDEX `parent` (pid), INDEX `t3ver_oid` (t3ver_oid,t3ver_wsid), @@ -111,11 +111,11 @@ CREATE TABLE tx_cart_domain_model_order_product ( sku varchar(255) DEFAULT '' NOT NULL, title varchar(255) DEFAULT '' NOT NULL, count int(11) DEFAULT '0' NOT NULL, - price double(11,2) DEFAULT '0.00' NOT NULL, - discount double(11,2) DEFAULT '0.00' NOT NULL, - gross double(11,2) DEFAULT '0.00' NOT NULL, - net double(11,2) DEFAULT '0.00' NOT NULL, - tax double(11,2) DEFAULT '0.00' NOT NULL, + price decimal(10,2) DEFAULT '0.00' NOT NULL, + discount decimal(10,2) DEFAULT '0.00' NOT NULL, + gross decimal(10,2) DEFAULT '0.00' NOT NULL, + net decimal(10,2) DEFAULT '0.00' NOT NULL, + tax decimal(10,2) DEFAULT '0.00' NOT NULL, tax_class int(11) unsigned DEFAULT '0' NOT NULL, additional text, @@ -134,10 +134,10 @@ CREATE TABLE tx_cart_domain_model_order_discount ( title varchar(255) DEFAULT '' NOT NULL, code varchar(255) DEFAULT '' NOT NULL, - gross double(11,2) DEFAULT '0.00' NOT NULL, - net double(11,2) DEFAULT '0.00' NOT NULL, + gross decimal(10,2) DEFAULT '0.00' NOT NULL, + net decimal(10,2) DEFAULT '0.00' NOT NULL, tax_class_id int(11) unsigned DEFAULT '1' NOT NULL, - tax double(11,2) DEFAULT '0.00' NOT NULL, + tax decimal(10,2) DEFAULT '0.00' NOT NULL, INDEX `parent` (pid), INDEX `t3ver_oid` (t3ver_oid,t3ver_wsid), ); @@ -169,9 +169,9 @@ CREATE TABLE tx_cart_domain_model_order_shipping ( service_id int(11) DEFAULT '0' NOT NULL, name varchar(255) DEFAULT '' NOT NULL, status varchar(255) DEFAULT '0' NOT NULL, - gross double(11,2) DEFAULT '0.00' NOT NULL, - net double(11,2) DEFAULT '0.00' NOT NULL, - tax double(11,2) DEFAULT '0.00' NOT NULL, + gross decimal(10,2) DEFAULT '0.00' NOT NULL, + net decimal(10,2) DEFAULT '0.00' NOT NULL, + tax decimal(10,2) DEFAULT '0.00' NOT NULL, tax_class int(11) unsigned DEFAULT '0' NOT NULL, note text, @@ -190,9 +190,9 @@ CREATE TABLE tx_cart_domain_model_order_payment ( name varchar(255) DEFAULT '' NOT NULL, provider varchar(255) DEFAULT '' NOT NULL, status varchar(255) DEFAULT '0' NOT NULL, - gross double(11,2) DEFAULT '0.00' NOT NULL, - net double(11,2) DEFAULT '0.00' NOT NULL, - tax double(11,2) DEFAULT '0.00' NOT NULL, + gross decimal(10,2) DEFAULT '0.00' NOT NULL, + net decimal(10,2) DEFAULT '0.00' NOT NULL, + tax decimal(10,2) DEFAULT '0.00' NOT NULL, tax_class int(11) unsigned DEFAULT '0' NOT NULL, note text, @@ -225,9 +225,9 @@ CREATE TABLE tx_cart_domain_model_coupon ( title varchar(255) DEFAULT '' NOT NULL, code varchar(255) DEFAULT '' NOT NULL, coupon_type varchar(255) DEFAULT 'cartdiscount' NOT NULL, - discount double(11,2) DEFAULT '0.00' NOT NULL, + discount decimal(10,2) DEFAULT '0.00' NOT NULL, tax_class_id int(11) unsigned DEFAULT '1' NOT NULL, - cart_min_price double(11,2) DEFAULT '0.00' NOT NULL, + cart_min_price decimal(10,2) DEFAULT '0.00' NOT NULL, is_combinable tinyint(4) unsigned DEFAULT '0' NOT NULL, is_relative_discount tinyint(4) unsigned DEFAULT '0' NOT NULL, handle_available tinyint(4) unsigned DEFAULT '0' NOT NULL,