You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In 6.2.0-b1.sql, a staement is issued to CHANGE CubeCart_geo_country.status to the TINYINT data type.
CubeCart has this column since 6.0.0 as an ENUM('0','1') text data type.
Be aware that the database actually stores the 1-based index of the list of strings:
[1] => "0"
[2] => "1"
Thus, when converting the contents of 'status' to TINYINT, it is the actual contents that remain - and not the result of attempting to convert the list element string literals that look like integers to actual integers.
Therefore, now that CC620's Status of Countries (CubeCart_geo_country.status ) use this scheme:
I have never seen commentary that promotes the use of ENUM to hold this sequence of numeric-looking strings. I have seen plenty of commentary that opines this is a bad idea.
ENUM has its uses, but a list of string literals used as zero- or one-based indexes to another list ain't one of them.
In 6.2.0-b1.sql, a staement is issued to CHANGE CubeCart_geo_country.status to the TINYINT data type.
CubeCart has this column since 6.0.0 as an
ENUM('0','1')
text data type.Be aware that the database actually stores the 1-based index of the list of strings:
Thus, when converting the contents of 'status' to TINYINT, it is the actual contents that remain - and not the result of attempting to convert the list element string literals that look like integers to actual integers.
Therefore, now that CC620's
Status
of Countries (CubeCart_geo_country.status ) use this scheme:the result is that every (enabled) country in admin, Countries & Zones, Countries tab is now set to Enabled (State Optional).
Later, in 6.2.0-b1.sql, a statement is issued to set every country except a few to 'status'=2 -- which, as it turns out, accomplishes nothing.
Suggest:
The text was updated successfully, but these errors were encountered: