Skip to content

Commit 0e72851

Browse files
MAGETWO-69230: #7279 bill-to name and ship-to name truncated to 20 chars #9654
2 parents e8e284e + 4ce5fab commit 0e72851

File tree

2 files changed

+26
-1
lines changed

2 files changed

+26
-1
lines changed

app/code/Magento/Quote/Setup/UpgradeSchema.php

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,31 @@ public function upgrade(SchemaSetupInterface $setup, ModuleContextInterface $con
6666
]
6767
);
6868
}
69+
if (version_compare($context->getVersion(), '2.0.6', '<')) {
70+
$connection = $setup->getConnection(self::$connectionName);
71+
$connection->modifyColumn(
72+
$setup->getTable('quote_address', self::$connectionName),
73+
'firstname',
74+
[
75+
'type' => \Magento\Framework\DB\Ddl\Table::TYPE_TEXT,
76+
'length' => 255,
77+
]
78+
)->modifyColumn(
79+
$setup->getTable('quote_address', self::$connectionName),
80+
'middlename',
81+
[
82+
'type' => \Magento\Framework\DB\Ddl\Table::TYPE_TEXT,
83+
'length' => 40,
84+
]
85+
)->modifyColumn(
86+
$setup->getTable('quote_address', self::$connectionName),
87+
'lastname',
88+
[
89+
'type' => \Magento\Framework\DB\Ddl\Table::TYPE_TEXT,
90+
'length' => 255,
91+
]
92+
);
93+
}
6994
$setup->endSetup();
7095
}
7196
}

app/code/Magento/Quote/etc/module.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
*/
77
-->
88
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
9-
<module name="Magento_Quote" setup_version="2.0.5">
9+
<module name="Magento_Quote" setup_version="2.0.6">
1010
</module>
1111
</config>

0 commit comments

Comments
 (0)