-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
Database tables with primary column having signed instead of unsigned definition which is loss of usable values #38585
Comments
Hi @kanevbg. Thank you for your report.
Join Magento Community Engineering Slack and ask your questions in #github channel. |
@magento give me 2.4-develop instance |
Hi @faizanps. Thank you for your request. I'm working on Magento instance for you. |
Hi @faizanps, here is your Magento Instance: https://0e41f955810ef54252bf938113d242f0.instances-prod.magento-community.engineering |
@Bashev адаш така е нали 😄 |
@magento give me 2.4-develop instance |
Hi @faizanps. Thank you for your request. I'm working on Magento instance for you. |
Hi @faizanps, here is your Magento Instance: https://0e41f955810ef54252bf938113d242f0.instances-prod.magento-community.engineering |
Hi @engcom-Dash. Thank you for working on this issue.
|
Hi @kanevbg Thanks for reporting and collaboration. Verified the issue in magento 2.4 dev instance. The issue is reproducable. Database tables with primary column having signed instead of unsigned definition. Hence, confirming the issue. Please refer the attached screenshots. ![]() |
✅ Jira issue https://jira.corp.adobe.com/browse/AC-11758 is successfully created for this GitHub issue. |
✅ Confirmed by @engcom-Dash. Thank you for verifying the issue. |
@engcom-Dash Please let me know if additional assistance or information may be helpful from my side. |
@magento I am working on this |
…ead of unsigned definition which is loss of usable values - changed unsigned attribute for value_id column for tables from original list + catalog_category_entity_datetime customer_address_entity_datetime
…ead of unsigned definition which is loss of usable values - changed unsigned attribute for primary columns
…ead of unsigned definition which is loss of usable values - rollback of unsigned attribute for main columns in app/code/Magento/Tax/etc/db_schema.xml due to test errors
…ead of unsigned definition which is loss of usable values - rollback of unsigned attribute for main columns in app/code/Magento/Cms/etc/db_schema.xml due to test errors
Preconditions and environment
Steps to reproduce
There is nothing to reproduce, it's a theoretical, architectural problem.
Expected result
Not applicable.
Actual result
Not applicable.
Additional information
Table
.
catalog_product_entity_text
hasvalue_id
primary column defined assigned int
. However the system never stores zero or negative ID in that table.This means we have 50% usable values of what the underlining database storage may store in practice for the data produced by the application. I have not found a single reason for that column being signed instead of unsigned. Please checkout.
This is applicable to the following tables:
Release note
No response
Triage and priority
The text was updated successfully, but these errors were encountered: