-
Notifications
You must be signed in to change notification settings - Fork 9.4k
field lengths differ across many tables #10869
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
Comments
Well you should have consistent field sizes - so reducing a 255 -> 20 is a no-go for backwards compatibility, why not propose a patch to fix what you've seen! I've had to manually address this as our ERP uses sql-server which is very unkind and does the right thing -faults the insert on size/truncation where-as mysql does the unthinkable and loses data quite happily! |
Hey, I've already proposed a patch and there discussion has gone a bit further. So I'm closing this. |
Here is what needs to be done: #10868 (comment) Similar issue existed for multiple fields, first/middle/lastname were fixed before but telephone (AND MAYBE other fields, this needs to be checked) are still affected. |
@steros, thank you for your report. |
I've addressed the issue in my PR (#11286). Checked the issued fields and found that it makes sense to extend the following fields:
As for the region and city, there are some really long names (https://en.wikipedia.org/wiki/List_of_long_place_names). So, it doesn't make sense to limit the length up to 50 or so. |
Hey @rogyar, should I assign the ticket on you? |
Hello @maksek. Sure, thank you. |
Thanks guys for working on this 👍 |
I backported this issue to 2.2-develop branch and submitted a PR. This issue is still open for 2.1. In 2.1 the module database version is at 2.0.4. These changes are in version 2.0.7. Should the database changes in 2.0.5 and 2.0.6 be backported first in order to backport this issue to the 2.1-develop branch? |
Preconditions
Steps to reproduce
Expected result
Actual result
Fix
See #10868
Raise the characters in quote_order_address to 255 VARCHAR as in sales_order_address
Further comment
I found numerous field lengths to be different across many tables. Thus strings get cut off.
In my case the "telephone" was cut off as someone set it to be just 20 characters in the quote_address table despite it being 255 characters wide in the sales_order_address table.
There are many other fields differing.
Someone seriously needs to check this! Unfortunately I do not have enough knowledge about all the fields.
In my case our customers want to enter not one phone number but sometimes their landline and mobile phone number into the telephone field. The field is not validated against any format.
It seems this is across any version.
The text was updated successfully, but these errors were encountered: