moduleDataSetup = $moduleDataSetup; } /** * @inheritdoc */ public function apply() { $this->moduleDataSetup->getConnection()->startSetup(); $connection = $this->moduleDataSetup->getConnection(); $connection->update( $this->moduleDataSetup->getTable('shipping_tablerate'), ['condition_name' => 'package_value_with_discount'], [new \Zend_Db_Expr('condition_name = \'package_value\'')] ); $connection->update( $this->moduleDataSetup->getTable('core_config_data'), ['value' => 'package_value_with_discount'], [ new \Zend_Db_Expr('value = \'package_value\''), new \Zend_Db_Expr('path = \'carriers/tablerate/condition_name\'') ] ); $this->moduleDataSetup->getConnection()->endSetup(); $connection->endSetup(); } /** * @inheritdoc */ public static function getDependencies() { return []; } /** * @inheritdoc */ public function getAliases() { return []; } }