File tree Expand file tree Collapse file tree 2 files changed +35
-1
lines changed Expand file tree Collapse file tree 2 files changed +35
-1
lines changed Original file line number Diff line number Diff line change
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
+ }
Original file line number Diff line number Diff line change 6
6
*/
7
7
-->
8
8
<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 " >
10
10
<sequence >
11
11
<module name =" Magento_Checkout" />
12
12
<module name =" Magento_Sales" />
You can’t perform that action at this time.
0 commit comments