Skip to content

Commit 255d03d

Browse files
committed
MAGETWO-61505: Inconsistent paypal_settlement_report schema after upgrade
1 parent 6e0a786 commit 255d03d

File tree

2 files changed

+35
-1
lines changed

2 files changed

+35
-1
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
<?php
2+
/**
3+
* Copyright © 2013-2017 Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
namespace Magento\Paypal\Setup;
7+
8+
use Magento\Framework\DB\Ddl\Table;
9+
use Magento\Framework\Setup\ModuleContextInterface;
10+
use Magento\Framework\Setup\SchemaSetupInterface;
11+
use Magento\Framework\Setup\UpgradeSchemaInterface;
12+
13+
/**
14+
* Upgrade the Paypal module DB scheme
15+
*/
16+
class UpgradeSchema implements UpgradeSchemaInterface
17+
{
18+
/**
19+
* {@inheritdoc}
20+
*/
21+
public function upgrade(SchemaSetupInterface $setup, ModuleContextInterface $context)
22+
{
23+
if (version_compare($context->getVersion(), '2.0.1', '<')) {
24+
$setup->getConnection()->modifyColumn(
25+
$setup->getTable('paypal_settlement_report'),
26+
'report_date',
27+
[
28+
'type' => Table::TYPE_DATE,
29+
'comment' => 'Report Date'
30+
]
31+
);
32+
}
33+
}
34+
}

app/code/Magento/Paypal/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_Paypal" setup_version="2.0.0">
9+
<module name="Magento_Paypal" setup_version="2.0.1">
1010
<sequence>
1111
<module name="Magento_Checkout"/>
1212
<module name="Magento_Sales"/>

0 commit comments

Comments
 (0)