-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistent escaping during database migration with MySQL #39491
Comments
Hi @LouisdeLooze. Thank you for your report.
Join Magento Community Engineering Slack and ask your questions in #github channel. |
Hi @engcom-Hotel. Thank you for working on this issue.
|
Hello @LouisdeLooze, Thanks for the report and collaboration! But we are unable to get the expected and actual result, request you to please elaborate on those. Thanks |
Directly after running
The extra output from above is when debugging if (! (get_class($first) === get_class($second) &&
$first->getDiffSensitiveParams() === $second->getDiffSensitiveParams())) {
var_dump($first->getDiffSensitiveParams());
var_dump($second->getDiffSensitiveParams());
} And that shows the difference in escaping the backslashes, which makes the comparator think they are different. Resulting in a permanent state of the declarative schema being not up to date. |
Hello @LouisdeLooze, Thanks for the report and collaboration! We have tried to reproduce the issue in the latest 2.4-develop branch and the issue has been reproducible for us. Please refer to the screenshot below for reference: The below module has been created by us to reproduce the issue: Hence confirming the issue. Thanks |
✅ Jira issue https://jira.corp.adobe.com/browse/AC-13545 is successfully created for this GitHub issue. |
✅ Confirmed by @engcom-Hotel. Thank you for verifying the issue. |
Preconditions and environment
Steps to reproduce
setup:upgrade
setup:db:status
Expected result
No database migrations needed, just ran the migrations.
Actual result
Migration is needed (breaking zero-downtime deployments for no reason), this is the difference:
from xml:
from MySQL:
for reference, MariaDB:
Additional information
No response
Release note
No response
Triage and priority
The text was updated successfully, but these errors were encountered: