Skip to content

Commit 17ed57e

Browse files
author
Prabhu Ram
committed
- Updated constraints on the catalog_compare_list table
1 parent 5cd7d07 commit 17ed57e

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -586,16 +586,15 @@
586586
<constraint xsi:type="primary" referenceId="PRIMARY">
587587
<column name="list_id"/>
588588
</constraint>
589-
589+
<constraint xsi:type="unique" referenceId="CATALOG_COMPARE_LIST_CUSTOMER_ID">
590+
<column name="customer_id"/>
591+
</constraint>
590592
<constraint xsi:type="foreign" referenceId="CATALOG_COMPARE_LIST_CUSTOMER_ID_CUSTOMER_ENTITY_ENTITY_ID"
591593
table="catalog_compare_list" column="customer_id" referenceTable="customer_entity"
592594
referenceColumn="entity_id" onDelete="CASCADE"/>
593595
<index referenceId="CATALOG_COMPARE_LIST_LIST_ID_MASK" indexType="btree">
594596
<column name="list_id_mask"/>
595597
</index>
596-
<index referenceId="CATALOG_COMPARE_LIST_CUSTOMER_ID_CUSTOMER_ENTITY_CUSTOMER_ID" indexType="btree">
597-
<column name="customer_id"/>
598-
</index>
599598
</table>
600599
<table name="catalog_product_website" resource="default" engine="innodb"
601600
comment="Catalog Product To Website Linkage Table">

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1132,12 +1132,12 @@
11321132
"customer_id": true
11331133
},
11341134
"index": {
1135-
"CATALOG_COMPARE_LIST_LIST_ID_MASK": true,
1136-
"CATALOG_COMPARE_LIST_CUSTOMER_ID": true
1135+
"CATALOG_COMPARE_LIST_LIST_ID_MASK": true
11371136
},
11381137
"constraint": {
11391138
"PRIMARY": true,
1139+
"CATALOG_COMPARE_LIST_CUSTOMER_ID": true,
11401140
"CATALOG_COMPARE_LIST_CUSTOMER_ID_CUSTOMER_ENTITY_ENTITY_ID": true
11411141
}
11421142
}
1143-
}
1143+
}

0 commit comments

Comments
 (0)