Skip to content

Commit 79b0b4e

Browse files
author
Stanislav Idolov
committed
MAGETWO-32296: Wee models and tables cleaning
1 parent 0070c73 commit 79b0b4e

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

app/code/Magento/Weee/Model/Resource/Attribute/Backend/Weee/Tax.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,6 @@ public function deleteProductData($product, $attribute)
103103
public function insertProductData($product, $data)
104104
{
105105
$data['entity_id'] = (int)$product->getId();
106-
$data['entity_type_id'] = (int)$product->getEntityTypeId();
107-
108106
$this->_getWriteAdapter()->insert($this->getMainTable(), $data);
109107
return $this;
110108
}

app/code/Magento/Weee/etc/module.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66
-->
77
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../../../lib/internal/Magento/Framework/Module/etc/module.xsd">
8-
<module name="Magento_Weee" schema_version="2.0.0">
8+
<module name="Magento_Weee" schema_version="2.0.0.1">
99
<sequence>
1010
<module name="Magento_Catalog"/>
1111
<module name="Magento_Tax"/>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php
2+
/**
3+
* @copyright Copyright (c) 2014 X.commerce, Inc. (http://www.magentocommerce.com)
4+
*/
5+
6+
$installer = $this;
7+
/** @var $installer \Magento\Setup\Module\SetupModule */
8+
$installer->startSetup();
9+
$connection = $installer->getConnection();
10+
11+
//Drop entity_type_id column for wee tax table
12+
$connection->dropColumn($installer->getTable('weee_tax'), 'entity_type_id');
13+
14+
$installer->endSetup();

0 commit comments

Comments
 (0)