Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit 6a3835f

Browse files
committed
Remove unique key for (product_id, website_id) on cataloginventory_stock_item table
1 parent 3a2533b commit 6a3835f

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

app/code/Magento/CatalogInventory/etc/db_schema.xml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -84,10 +84,6 @@
8484
<column name="product_id"/>
8585
<column name="stock_id"/>
8686
</constraint>
87-
<constraint xsi:type="unique" name="CATALOGINVENTORY_STOCK_ITEM_PRODUCT_ID_WEBSITE_ID">
88-
<column name="product_id"/>
89-
<column name="website_id"/>
90-
</constraint>
9187
<index name="CATALOGINVENTORY_STOCK_ITEM_WEBSITE_ID" indexType="btree">
9288
<column name="website_id"/>
9389
</index>

app/code/Magento/CatalogInventory/etc/db_schema_whitelist.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@
5050
"CATINV_STOCK_ITEM_PRD_ID_CAT_PRD_ENTT_ENTT_ID": true,
5151
"CATINV_STOCK_ITEM_STOCK_ID_CATINV_STOCK_STOCK_ID": true,
5252
"CATALOGINVENTORY_STOCK_ITEM_PRODUCT_ID_STOCK_ID": true,
53-
"CATALOGINVENTORY_STOCK_ITEM_PRODUCT_ID_WEBSITE_ID": true,
5453
"CATINV_STOCK_ITEM_PRD_ID_SEQUENCE_PRD_SEQUENCE_VAL": true
5554
}
5655
},

0 commit comments

Comments
 (0)