-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Open
Labels
Priority: P2A defect with this priority could have functionality issues which are not to expectations.A defect with this priority could have functionality issues which are not to expectations.Progress: ready for groomingfeature request
Description
Description (*)
This table eav_attribute_label
has an index defined in db_schema.xml
<index referenceId="EAV_ATTRIBUTE_LABEL_ATTRIBUTE_ID_STORE_ID" indexType="btree">
<column name="attribute_id"/>
<column name="store_id"/>
</index>
I work on fast database import scripts and tried to add a new unique index in that table:
<table name="eav_attribute_label">
<constraint xsi:type="unique" referenceId="EAV_ATTRIBUTE_LABEL_ATTRIBUTE_ID_STORE_ID_UNQ">
<column name="attribute_id"/>
<column name="store_id"/>
</constraint>
</table>
but unique index name create by Magento 2 is: EAV_ATTRIBUTE_LABEL_ATTRIBUTE_ID_STORE_ID
which is identical to the index defined above and that breaks installation / running db:upgrade
schema
Expected behavior (*)
Unique indexes should contain UNQ / UNIQUE in referenceId
Benefits
No conflicts on core
tables when new indexes or unique indexes are added.
Ability to create multiple insert scripts.
Additional information
JosephLeedy, ihor-sviziev and lbajsarowiczAbiudSM and Genaker
Metadata
Metadata
Assignees
Labels
Priority: P2A defect with this priority could have functionality issues which are not to expectations.A defect with this priority could have functionality issues which are not to expectations.Progress: ready for groomingfeature request
Type
Projects
Status
Pull Request in Progress