@@ -18,12 +18,12 @@ class UpgradeSchema implements UpgradeSchemaInterface
18
18
/**
19
19
* @var string
20
20
*/
21
- private static $ quoteConnectionName = 'checkout ' ;
21
+ private $ quoteConnectionName = 'checkout ' ;
22
22
23
23
/**
24
24
* @var string
25
25
*/
26
- private static $ salesConnectionName = 'sales ' ;
26
+ private $ salesConnectionName = 'sales ' ;
27
27
28
28
/**
29
29
* @inheritdoc
@@ -58,8 +58,8 @@ private function updateFreeShippingColumns(SchemaSetupInterface $setup)
58
58
'comment ' => 'Simple Free Shipping ' ,
59
59
]
60
60
);
61
- $ setup ->getConnection (self :: $ salesConnectionName )->modifyColumn (
62
- $ setup ->getTable ('sales_order_item ' , self :: $ salesConnectionName ),
61
+ $ setup ->getConnection ($ this -> salesConnectionName )->modifyColumn (
62
+ $ setup ->getTable ('sales_order_item ' , $ this -> salesConnectionName ),
63
63
'free_shipping ' ,
64
64
[
65
65
'type ' => \Magento \Framework \DB \Ddl \Table::TYPE_SMALLINT ,
@@ -69,8 +69,8 @@ private function updateFreeShippingColumns(SchemaSetupInterface $setup)
69
69
'comment ' => 'Free Shipping ' ,
70
70
]
71
71
);
72
- $ setup ->getConnection (self :: $ quoteConnectionName )->modifyColumn (
73
- $ setup ->getTable ('quote_address ' , self :: $ quoteConnectionName ),
72
+ $ setup ->getConnection ($ this -> quoteConnectionName )->modifyColumn (
73
+ $ setup ->getTable ('quote_address ' , $ this -> quoteConnectionName ),
74
74
'free_shipping ' ,
75
75
[
76
76
'type ' => \Magento \Framework \DB \Ddl \Table::TYPE_SMALLINT ,
@@ -80,8 +80,8 @@ private function updateFreeShippingColumns(SchemaSetupInterface $setup)
80
80
'comment ' => 'Free Shipping ' ,
81
81
]
82
82
);
83
- $ setup ->getConnection (self :: $ quoteConnectionName )->modifyColumn (
84
- $ setup ->getTable ('quote_item ' , self :: $ quoteConnectionName ),
83
+ $ setup ->getConnection ($ this -> quoteConnectionName )->modifyColumn (
84
+ $ setup ->getTable ('quote_item ' , $ this -> quoteConnectionName ),
85
85
'free_shipping ' ,
86
86
[
87
87
'type ' => \Magento \Framework \DB \Ddl \Table::TYPE_SMALLINT ,
@@ -91,8 +91,8 @@ private function updateFreeShippingColumns(SchemaSetupInterface $setup)
91
91
'comment ' => 'Free Shipping ' ,
92
92
]
93
93
);
94
- $ setup ->getConnection (self :: $ quoteConnectionName )->modifyColumn (
95
- $ setup ->getTable ('quote_address_item ' , self :: $ quoteConnectionName ),
94
+ $ setup ->getConnection ($ this -> quoteConnectionName )->modifyColumn (
95
+ $ setup ->getTable ('quote_address_item ' , $ this -> quoteConnectionName ),
96
96
'free_shipping ' ,
97
97
[
98
98
'type ' => \Magento \Framework \DB \Ddl \Table::TYPE_INTEGER ,
0 commit comments