From dacdbd745d588e60744a76fd457f2755476f342f Mon Sep 17 00:00:00 2001 From: Steven Date: Wed, 13 Sep 2017 15:12:50 +0200 Subject: [PATCH] field lengths differ across many tables I found numerous field lengths to be different across many tables. Thus strings get cut off. In my case the "telephone" was cut off as someone set it to be just 20 characters in the quote_address table despite it being 255 characters wide in the sales_order_address table. There are many other fields differing. Someone seriously needs to check this! Unfortunately I do not have enough knowledge about all the fields. In my case our customers want to enter not one phone number but sometimes their landline and mobile phone number into the telephone field. The field is not validated against any format. --- app/code/Magento/Quote/Setup/InstallSchema.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/code/Magento/Quote/Setup/InstallSchema.php b/app/code/Magento/Quote/Setup/InstallSchema.php index bbf7e670da0b4..05ef3d0916e1e 100644 --- a/app/code/Magento/Quote/Setup/InstallSchema.php +++ b/app/code/Magento/Quote/Setup/InstallSchema.php @@ -474,7 +474,7 @@ public function install(SchemaSetupInterface $setup, ModuleContextInterface $con )->addColumn( 'telephone', \Magento\Framework\DB\Ddl\Table::TYPE_TEXT, - 20, + 255, [], 'Phone Number' )->addColumn(