21 private $moduleDataSetup;
30 $this->moduleDataSetup = $moduleDataSetup;
39 $this->moduleDataSetup->getConnection()->startSetup();
40 $connection = $this->moduleDataSetup->getConnection();
41 $salesConnection = $this->moduleDataSetup->getConnection(
'sales');
42 $checkoutConnection = $this->moduleDataSetup->getConnection(
'checkout');
44 $this->moduleDataSetup->getTable(
'salesrule'),
45 [
'simple_free_shipping' => 0],
46 [new \Zend_Db_Expr(
'simple_free_shipping IS NULL')]
48 $this->moduleDataSetup->getConnection()->endSetup();
51 $salesConnection->startSetup();
52 $salesConnection->update(
53 $this->moduleDataSetup->getTable(
'sales_order_item'),
54 [
'free_shipping' => 0],
55 [new \Zend_Db_Expr(
'free_shipping IS NULL')]
57 $salesConnection->endSetup();
60 $checkoutConnection->startSetup();
61 $checkoutConnection->update(
62 $this->moduleDataSetup->getTable(
'quote_address'),
63 [
'free_shipping' => 0],
64 [new \Zend_Db_Expr(
'free_shipping IS NULL')]
66 $checkoutConnection->update(
67 $this->moduleDataSetup->getTable(
'quote_item'),
68 [
'free_shipping' => 0],
69 [new \Zend_Db_Expr(
'free_shipping IS NULL')]
71 $checkoutConnection->endSetup();
__construct(\Magento\Framework\Setup\ModuleDataSetupInterface $moduleDataSetup)