Merge pull request woocommerce/woocommerce-admin#1446 from woocommerce/fix/1445

Added primary key to tax lookup table to prevent duplicate entries.
This commit is contained in:
Peter Fabian 2019-02-01 17:52:59 +01:00 committed by GitHub
commit 9c52155d40
1 changed files with 1 additions and 1 deletions

View File

@ -746,7 +746,7 @@ class WC_Admin_Api_Init {
shipping_tax double DEFAULT 0 NOT NULL,
order_tax double DEFAULT 0 NOT NULL,
total_tax double DEFAULT 0 NOT NULL,
KEY order_id (order_id),
PRIMARY KEY (order_id, tax_rate_id),
KEY tax_rate_id (tax_rate_id),
KEY date_created (date_created)
) $collate;