Skip to content

Commit 67a92af

Browse files
ENGCOM-5977: #24581 Added unique key on eav_attribute_label table #24682
- Merge Pull Request #24682 from KaushikChavda/magento2:issue/24581 - Merged commits: 1. dbf518e 2. 4dbf01c 3. f5638be
2 parents 6f1a6f7 + f5638be commit 67a92af

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)