Skip to content

Commit 8e09f0c

Browse files
authored
ENGCOM-5977: #24581 Added unique key on eav_attribute_label table #24682
2 parents d3ca0a7 + 67a92af commit 8e09f0c

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,10 @@
481481
referenceColumn="attribute_id" onDelete="CASCADE"/>
482482
<constraint xsi:type="foreign" referenceId="EAV_ATTRIBUTE_LABEL_STORE_ID_STORE_STORE_ID" table="eav_attribute_label"
483483
column="store_id" referenceTable="store" referenceColumn="store_id" onDelete="CASCADE"/>
484+
<constraint xsi:type="unique" referenceId="EAV_ATTRIBUTE_LABEL_ATTRIBUTE_ID_STORE_ID_UNIQUE">
485+
<column name="store_id"/>
486+
<column name="attribute_id"/>
487+
</constraint>
484488
<index referenceId="EAV_ATTRIBUTE_LABEL_STORE_ID" indexType="btree">
485489
<column name="store_id"/>
486490
</index>

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,8 @@
304304
"constraint": {
305305
"PRIMARY": true,
306306
"EAV_ATTRIBUTE_LABEL_ATTRIBUTE_ID_EAV_ATTRIBUTE_ATTRIBUTE_ID": true,
307-
"EAV_ATTRIBUTE_LABEL_STORE_ID_STORE_STORE_ID": true
307+
"EAV_ATTRIBUTE_LABEL_STORE_ID_STORE_STORE_ID": true,
308+
"EAV_ATTRIBUTE_LABEL_STORE_ID_ATTRIBUTE_ID": true
308309
}
309310
},
310311
"eav_form_type": {

0 commit comments

Comments
 (0)