Skip to content

Commit

Permalink
Merge pull request #1221 from magento-engcom/2.1-develop-prs
Browse files Browse the repository at this point in the history
Public Pull Requests

#10011
  • Loading branch information
Oleksii Korshenko committed Jun 23, 2017
2 parents 7e05b19 + 7fd9976 commit ce739c2
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 1 deletion.
32 changes: 32 additions & 0 deletions app/code/Magento/Quote/Setup/UpgradeSchema.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,38 @@ public function upgrade(SchemaSetupInterface $setup, ModuleContextInterface $con
$setup->getFkName('quote_item', 'product_id', 'catalog_product_entity', 'entity_id')
);
}
if (version_compare($context->getVersion(), '2.0.4', '<')) {
$setup->getConnection(self::$connectionName)->changeColumn(
$setup->getTable('quote_address', self::$connectionName),
'firstname',
'firstname',
[
'type' => \Magento\Framework\DB\Ddl\Table::TYPE_TEXT,
'length' => 255,
'comment' => 'Firstname'
]
);
$setup->getConnection(self::$connectionName)->changeColumn(
$setup->getTable('quote_address', self::$connectionName),
'middlename',
'middlename',
[
'type' => \Magento\Framework\DB\Ddl\Table::TYPE_TEXT,
'length' => 40,
'comment' => 'Middlename'
]
);
$setup->getConnection(self::$connectionName)->changeColumn(
$setup->getTable('quote_address', self::$connectionName),
'lastname',
'lastname',
[
'type' => \Magento\Framework\DB\Ddl\Table::TYPE_TEXT,
'length' => 255,
'comment' => 'Lastname'
]
);
}
$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.3">
<module name="Magento_Quote" setup_version="2.0.4">
</module>
</config>

0 comments on commit ce739c2

Please sign in to comment.