Skip to content

Commit 4ce5fab

Browse files
committed
MAGETWO-69230: #7279 bill-to name and ship-to name truncated to 20 chars #9654
- Merge conflict resolved
1 parent 0c8d339 commit 4ce5fab

File tree

2 files changed

+6
-13
lines changed

2 files changed

+6
-13
lines changed

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

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -66,35 +66,28 @@ public function upgrade(SchemaSetupInterface $setup, ModuleContextInterface $con
6666
]
6767
);
6868
}
69-
if (version_compare($context->getVersion(), '2.0.5', '<')) {
70-
$setup->getConnection(self::$connectionName)->changeColumn(
69+
if (version_compare($context->getVersion(), '2.0.6', '<')) {
70+
$connection = $setup->getConnection(self::$connectionName);
71+
$connection->modifyColumn(
7172
$setup->getTable('quote_address', self::$connectionName),
7273
'firstname',
73-
'firstname',
7474
[
7575
'type' => \Magento\Framework\DB\Ddl\Table::TYPE_TEXT,
7676
'length' => 255,
77-
'comment' => 'Firstname'
7877
]
79-
);
80-
$setup->getConnection(self::$connectionName)->changeColumn(
78+
)->modifyColumn(
8179
$setup->getTable('quote_address', self::$connectionName),
8280
'middlename',
83-
'middlename',
8481
[
8582
'type' => \Magento\Framework\DB\Ddl\Table::TYPE_TEXT,
8683
'length' => 40,
87-
'comment' => 'Middlename'
8884
]
89-
);
90-
$setup->getConnection(self::$connectionName)->changeColumn(
85+
)->modifyColumn(
9186
$setup->getTable('quote_address', self::$connectionName),
9287
'lastname',
93-
'lastname',
9488
[
9589
'type' => \Magento\Framework\DB\Ddl\Table::TYPE_TEXT,
9690
'length' => 255,
97-
'comment' => 'Lastname'
9891
]
9992
);
10093
}

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)