Open
Description
Preconditions (*)
Project Environment
Magento 2.4-develop
Magento Version: 2.3.x CE
PHP: 7.4
Database: MySQL 8.0
OS: CentOS 7
Caching: Varnish Cache and OPcache
Steps to reproduce (*)
- Create a schema patch with a class name e.g. ExampleSchemaPatch
- Add a logger inside the apply method for the schema patch class to indicate that the apply method was executed
- Run
setup:upgrade
- Check the
patch_list
table a fully qualified class name for the patch class would be present - Check the log file to confirm that the apply method for the patch was executed
- Now change the class name of the applied patch to some something else e.g. ChangedExampleSchemaPatch
- Added the old class name as an array item for the return array for the
getAliases()
method
public function getAliases()
{
return [
ExampleSchemaPatch::class
];
}
- Run setup upgrade one more time
Expected result (*)
- The second
setup:upgrade
should run normally with no errors whatsoever
Actual result (*)
setup:upgrade
fails while applying patch. Mentioning that the original (now aliased) patch has already been applied
Please provide Severity assessment for the Issue as Reporter. This information will help during Confirmation and Issue triage processes.
- Severity: S0 - Affects critical data or functionality and leaves users without workaround.
- Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
- Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
- Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
- Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.
Metadata
Metadata
Assignees
Labels
Gate 3 Passed. Manual verification of the issue completed. Issue is confirmedMay be fixed according to the position in the backlog.Indicates original Magento version for the Issue report.The issue has been reproduced on latest 2.4-develop branchAffects non-critical data or functionality and does not force users to employ a workaround.Issue related to Developer Experience and needs help with Triage to Confirm or Reject it