-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathsales.sql
63 lines (52 loc) · 2.22 KB
/
sales.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# These columns are add by these three EE modules: Magento_CustomerBalance, Magento_GiftCardAccount and Magento_GiftRegistry
ALTER TABLE `sales_order`
DROP COLUMN `base_customer_balance_amount`,
DROP COLUMN `customer_balance_amount`,
DROP COLUMN `base_customer_balance_invoiced`,
DROP COLUMN `customer_balance_invoiced`,
DROP COLUMN `base_customer_balance_refunded`,
DROP COLUMN `customer_balance_refunded`,
DROP COLUMN `customer_bal_total_refunded`,
DROP COLUMN `bs_customer_bal_total_refunded`,
DROP COLUMN `gift_cards`,
DROP COLUMN `base_gift_cards_amount`,
DROP COLUMN `gift_cards_amount`,
DROP COLUMN `base_gift_cards_invoiced`,
DROP COLUMN `gift_cards_invoiced`,
DROP COLUMN `base_gift_cards_refunded`,
DROP COLUMN `gift_cards_refunded`,
DROP COLUMN `reward_points_balance`,
DROP COLUMN `base_reward_currency_amount`,
DROP COLUMN `reward_currency_amount`,
DROP COLUMN `base_rwrd_crrncy_amt_invoiced`,
DROP COLUMN `rwrd_currency_amount_invoiced`,
DROP COLUMN `base_rwrd_crrncy_amnt_refnded`,
DROP COLUMN `rwrd_crrncy_amnt_refunded`,
DROP COLUMN `reward_points_balance_refund`;
ALTER TABLE `sales_order_item`
DROP COLUMN `giftregistry_item_id`,
DROP COLUMN `event_id`,
DROP COLUMN `qty_returned`;
ALTER TABLE `sales_order_address`
DROP COLUMN `giftregistry_item_id`;
ALTER TABLE `sales_invoice`
DROP COLUMN `base_customer_balance_amount`,
DROP COLUMN `customer_balance_amount`,
DROP COLUMN `base_gift_cards_amount`,
DROP COLUMN `gift_cards_amount`,
DROP COLUMN `base_reward_currency_amount`,
DROP COLUMN `reward_currency_amount`,
DROP COLUMN `reward_points_balance`;
ALTER TABLE `sales_creditmemo`
DROP COLUMN `base_customer_balance_amount`,
DROP COLUMN `customer_balance_amount`,
DROP COLUMN `bs_customer_bal_total_refunded`,
DROP COLUMN `customer_bal_total_refunded`,
DROP COLUMN `base_gift_cards_amount`,
DROP COLUMN `gift_cards_amount`,
DROP COLUMN `base_reward_currency_amount`,
DROP COLUMN `reward_currency_amount`,
DROP COLUMN `reward_points_balance`,
DROP COLUMN `reward_points_balance_refund`;
ALTER TABLE `sales_order_grid`
DROP COLUMN `refunded_to_store_credit`;