Skip to content

Commit 293b4ba

Browse files
committed
B2B-1663: Add Primary Key on Magento CE DB Tables
1 parent cd857f9 commit 293b4ba

File tree

6 files changed

+21
-0
lines changed

6 files changed

+21
-0
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1697,6 +1697,10 @@
16971697
<column name="value_id"/>
16981698
<column name="entity_id"/>
16991699
</constraint>
1700+
<constraint xsi:type="primary" referenceId="PRIMARY">
1701+
<column name="value_id"/>
1702+
<column name="entity_id"/>
1703+
</constraint>
17001704
</table>
17011705
<table name="catalog_product_index_eav_replica" resource="default" engine="innodb"
17021706
comment="Catalog Product EAV Index Table">

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,10 @@
9191
<index referenceId="OAUTH_NONCE_TIMESTAMP" indexType="btree">
9292
<column name="timestamp"/>
9393
</index>
94+
<constraint xsi:type="primary" referenceId="PRIMARY">
95+
<column name="nonce"/>
96+
<column name="consumer_id"/>
97+
</constraint>
9498
</table>
9599
<table name="integration" resource="default" engine="innodb" comment="integration">
96100
<column xsi:type="int" name="integration_id" unsigned="true" nullable="false" identity="true"

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,8 @@
1515
<constraint xsi:type="unique" referenceId="LOGIN_AS_CUSTOMER_ASSISTANCE_ALLOWED_CUSTOMER_ID">
1616
<column name="customer_id"/>
1717
</constraint>
18+
<constraint xsi:type="primary" referenceId="PRIMARY">
19+
<column name="customer_id"/>
20+
</constraint>
1821
</table>
1922
</schema>

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,9 @@
2929
<column name="value_id"/>
3030
<column name="store_id"/>
3131
</constraint>
32+
<constraint xsi:type="primary" referenceId="PRIMARY">
33+
<column name="value_id"/>
34+
<column name="store_id"/>
35+
</constraint>
3236
</table>
3337
</schema>

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@
7474
<column name="layout_update_id"/>
7575
<column name="page_id"/>
7676
</constraint>
77+
<constraint xsi:type="primary" referenceId="PRIMARY">
78+
<column name="layout_update_id"/>
79+
<column name="page_id"/>
80+
</constraint>
7781
<index referenceId="WIDGET_INSTANCE_PAGE_LAYOUT_PAGE_ID" indexType="btree">
7882
<column name="page_id"/>
7983
</index>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
catalog_url_rewrite_product_category
2+
queue_poison_pill

0 commit comments

Comments
 (0)