Skip to content

Commit ba224b4

Browse files
author
George Schiopu
committed
MAGETWO-83202: update 'remote_ip' in both 'sales_order' and 'quote' tables for ipv6 #10395
1 parent 9cfd602 commit ba224b4

File tree

4 files changed

+22
-2
lines changed

4 files changed

+22
-2
lines changed

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,15 @@ public function upgrade(SchemaSetupInterface $setup, ModuleContextInterface $con
120120
['type' => Table::TYPE_TEXT, 'length' => 255]
121121
);
122122
}
123+
if (version_compare($context->getVersion(), '2.0.8', '<')) {
124+
$connection = $setup->getConnection(self::$connectionName);
125+
$connection->modifyColumn(
126+
$setup->getTable('quote', self::$connectionName),
127+
'remote_ip',
128+
['type' => Table::TYPE_TEXT, 'length' => 45]
129+
);
130+
}
131+
123132
$setup->endSetup();
124133
}
125134
}

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.7">
9+
<module name="Magento_Quote" setup_version="2.0.8">
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
@@ -106,6 +106,17 @@ public function upgrade(SchemaSetupInterface $setup, ModuleContextInterface $con
106106
]
107107
);
108108
}
109+
if (version_compare($context->getVersion(), '2.0.10', '<')) {
110+
$connection = $installer->getConnection(self::$connectionName);
111+
$connection->modifyColumn(
112+
$installer->getTable('sales_order', self::$connectionName),
113+
'remote_ip',
114+
[
115+
'type' => \Magento\Framework\DB\Ddl\Table::TYPE_TEXT,
116+
'length' => 45
117+
]
118+
);
119+
}
109120
}
110121

111122
/**

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.9">
9+
<module name="Magento_Sales" setup_version="2.0.10">
1010
<sequence>
1111
<module name="Magento_Rule"/>
1212
<module name="Magento_Catalog"/>

0 commit comments

Comments
 (0)