Open
Description
Preconditions (*)
- Magento 2.3
Steps to reproduce (*)
- Use
<constraint xsi:type="index"...
in db_schema.xml - Run setup:upgrade twice
Sample db_schema.xml file
<?xml version="1.0"?>
<schema xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="urn:magento:framework:Setup/Declaration/Schema/etc/schema.xsd">
<table name="inventory_source_item">
<column xsi:type="timestamp" name="updated_at" on_update="true" nullable="false" default="CURRENT_TIMESTAMP"
comment="Update Time"/>
<constraint xsi:type="index" referenceId="INVENTORY_SOURCE_ITEM_UPDATED_AT">
<column name="updated_at"/>
</constraint>
</table>
</schema>
Expected result (*)
- Setup process completes with no changes detected
Actual result (*)
- Command fails with message
PDOException: SQLSTATE[42000]: Syntax error or access violation: 1061 Duplicate key name 'INVENTORY_SOURCE_ITEM_UPDATED_AT'
Metadata
Metadata
Assignees
Labels
Gate 3 Passed. Manual verification of the issue completed. Issue is confirmedNo current plan to fix. Fixing can be deferred as a logical part of more important work.The issue has been reproduced on latest 2.3 releaseAffects aesthetics, professional look and feel, “quality” or “usability”.Issue related to Developer Experience and needs help with Triage to Confirm or Reject it