diff --git a/app/code/Magento/Sales/Setup/UpgradeSchema.php b/app/code/Magento/Sales/Setup/UpgradeSchema.php index fe2d422914c57..6e625a1eaaa19 100644 --- a/app/code/Magento/Sales/Setup/UpgradeSchema.php +++ b/app/code/Magento/Sales/Setup/UpgradeSchema.php @@ -109,6 +109,9 @@ public function upgrade(SchemaSetupInterface $setup, ModuleContextInterface $con if (version_compare($context->getVersion(), '2.0.10', '<')) { $this->expandRemoteIpField($installer); } + if (version_compare($context->getVersion(), '2.0.11', '<')) { + $this->expandLastTransIdField($installer); + } } /** @@ -161,4 +164,21 @@ private function expandRemoteIpField(SchemaSetupInterface $installer) ] ); } + + /** + * @param SchemaSetupInterface $installer + * @return void + */ + private function expandLastTransIdField(SchemaSetupInterface $installer) + { + $connection = $installer->getConnection(self::$connectionName); + $connection->modifyColumn( + $installer->getTable('sales_order_payment', self::$connectionName), + 'last_trans_id', + [ + 'type' => \Magento\Framework\DB\Ddl\Table::TYPE_TEXT, + 'length' => 255 + ] + ); + } } diff --git a/app/code/Magento/Sales/etc/module.xml b/app/code/Magento/Sales/etc/module.xml index 3a82dd64a7949..0fd2124785ba7 100644 --- a/app/code/Magento/Sales/etc/module.xml +++ b/app/code/Magento/Sales/etc/module.xml @@ -6,7 +6,7 @@ */ --> - +