Skip to content

Commit

Permalink
MAGETWO-69230: #7279 bill-to name and ship-to name truncated to 20 ch…
Browse files Browse the repository at this point in the history
…ars #9654
  • Loading branch information
ishakhsuvarov authored May 26, 2017
2 parents e8e284e + 4ce5fab commit 0e72851
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 1 deletion.
25 changes: 25 additions & 0 deletions app/code/Magento/Quote/Setup/UpgradeSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,31 @@ public function upgrade(SchemaSetupInterface $setup, ModuleContextInterface $con
]
);
}
if (version_compare($context->getVersion(), '2.0.6', '<')) {
$connection = $setup->getConnection(self::$connectionName);
$connection->modifyColumn(
$setup->getTable('quote_address', self::$connectionName),
'firstname',
[
'type' => \Magento\Framework\DB\Ddl\Table::TYPE_TEXT,
'length' => 255,
]
)->modifyColumn(
$setup->getTable('quote_address', self::$connectionName),
'middlename',
[
'type' => \Magento\Framework\DB\Ddl\Table::TYPE_TEXT,
'length' => 40,
]
)->modifyColumn(
$setup->getTable('quote_address', self::$connectionName),
'lastname',
[
'type' => \Magento\Framework\DB\Ddl\Table::TYPE_TEXT,
'length' => 255,
]
);
}
$setup->endSetup();
}
}
2 changes: 1 addition & 1 deletion app/code/Magento/Quote/etc/module.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
*/
-->
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Magento_Quote" setup_version="2.0.5">
<module name="Magento_Quote" setup_version="2.0.6">
</module>
</config>

0 comments on commit 0e72851

Please sign in to comment.