Skip to content

Commit 6194d52

Browse files
committed
Merge remote-tracking branch 'origin/MAGETWO-58722' into bugs
2 parents da7b511 + f70b196 commit 6194d52

File tree

4 files changed

+24
-2
lines changed

4 files changed

+24
-2
lines changed

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,17 @@ 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.5', '<')) {
59+
$connection = $setup->getConnection();
60+
$connection->modifyColumn(
61+
$setup->getTable('quote_address'),
62+
'shipping_method',
63+
[
64+
'type' => \Magento\Framework\DB\Ddl\Table::TYPE_TEXT,
65+
'length' => 120
66+
]
67+
);
68+
}
5869
$setup->endSetup();
5970
}
6071
}

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

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,17 @@ public function upgrade(SchemaSetupInterface $setup, ModuleContextInterface $con
9595
]
9696
);
9797
}
98+
if (version_compare($context->getVersion(), '2.0.7', '<')) {
99+
$connection = $installer->getConnection(self::$connectionName);
100+
$connection->modifyColumn(
101+
$installer->getTable('sales_order', self::$connectionName),
102+
'shipping_method',
103+
[
104+
'type' => \Magento\Framework\DB\Ddl\Table::TYPE_TEXT,
105+
'length' => 120
106+
]
107+
);
108+
}
98109
}
99110

100111
/**

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
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_Sales" setup_version="2.0.6">
9+
<module name="Magento_Sales" setup_version="2.0.7">
1010
<sequence>
1111
<module name="Magento_Rule"/>
1212
<module name="Magento_Catalog"/>

0 commit comments

Comments
 (0)