Skip to content

Commit dbf518e

Browse files
author
Kaushik Chavda
committed
#24581 Added unique key on eav_attribute_label table
1 parent 97a2027 commit dbf518e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -481,11 +481,11 @@
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-
<index referenceId="EAV_ATTRIBUTE_LABEL_STORE_ID" indexType="btree">
484+
<constraint xsi:type="unique" referenceId="EAV_ATTRIBUTE_LABEL_ATTRIBUTE_ID_STORE_ID_UNIQUE">
485485
<column name="store_id"/>
486-
</index>
487-
<index referenceId="EAV_ATTRIBUTE_LABEL_ATTRIBUTE_ID_STORE_ID" indexType="btree">
488486
<column name="attribute_id"/>
487+
</constraint>
488+
<index referenceId="EAV_ATTRIBUTE_LABEL_STORE_ID" indexType="btree">
489489
<column name="store_id"/>
490490
</index>
491491
</table>

0 commit comments

Comments
 (0)