Skip to content

Commit ee03d71

Browse files
committed
MAGETWO-31559: [TD] Removing NominalItems usage
- added update script
1 parent 9a5fc02 commit ee03d71

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

app/code/Magento/Sales/sql/sales_setup/install-2.0.0.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1646,6 +1646,12 @@
16461646
'12,4',
16471647
[],
16481648
'Hidden Tax Canceled'
1649+
)->addColumn(
1650+
'is_nominal',
1651+
\Magento\Framework\DB\Ddl\Table::TYPE_INTEGER,
1652+
null,
1653+
['nullable' => false, 'default' => '0'],
1654+
'Is Nominal'
16491655
)->addColumn(
16501656
'tax_refunded',
16511657
\Magento\Framework\DB\Ddl\Table::TYPE_DECIMAL,
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<?php
2+
/**
3+
* @copyright Copyright (c) 2014 X.commerce, Inc. (http://www.magentocommerce.com)
4+
*/
5+
6+
/** @var $this \Magento\Sales\Model\Resource\Setup */
7+
$this->startSetup();
8+
/**
9+
* update table 'sales_order_item'
10+
*/
11+
$table = $this->getConnection()->dropColumn('sales_order_item', 'is_nominal');
12+
$this->endSetup();

0 commit comments

Comments
 (0)