Skip to content

Commit 7fd9976

Browse files
author
Oleksii Korshenko
authored
MAGETWO-70077: Backport 7279 to 2.1 #10011
2 parents 7e05b19 + 955e93a commit 7fd9976

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed

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

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,38 @@ public function upgrade(SchemaSetupInterface $setup, ModuleContextInterface $con
5555
$setup->getFkName('quote_item', 'product_id', 'catalog_product_entity', 'entity_id')
5656
);
5757
}
58+
if (version_compare($context->getVersion(), '2.0.4', '<')) {
59+
$setup->getConnection(self::$connectionName)->changeColumn(
60+
$setup->getTable('quote_address', self::$connectionName),
61+
'firstname',
62+
'firstname',
63+
[
64+
'type' => \Magento\Framework\DB\Ddl\Table::TYPE_TEXT,
65+
'length' => 255,
66+
'comment' => 'Firstname'
67+
]
68+
);
69+
$setup->getConnection(self::$connectionName)->changeColumn(
70+
$setup->getTable('quote_address', self::$connectionName),
71+
'middlename',
72+
'middlename',
73+
[
74+
'type' => \Magento\Framework\DB\Ddl\Table::TYPE_TEXT,
75+
'length' => 40,
76+
'comment' => 'Middlename'
77+
]
78+
);
79+
$setup->getConnection(self::$connectionName)->changeColumn(
80+
$setup->getTable('quote_address', self::$connectionName),
81+
'lastname',
82+
'lastname',
83+
[
84+
'type' => \Magento\Framework\DB\Ddl\Table::TYPE_TEXT,
85+
'length' => 255,
86+
'comment' => 'Lastname'
87+
]
88+
);
89+
}
5890
$setup->endSetup();
5991
}
6092
}

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.3">
9+
<module name="Magento_Quote" setup_version="2.0.4">
1010
</module>
1111
</config>

0 commit comments

Comments
 (0)