Hello,
I have a Select Multiple attribute which has 8 options. It works fine as long as only 3 options are checked. When checking more than 3 options, everything is erased.
I have been searching for the cause, and found that Select Multiple creates a varchar(64) field in the SQL database which seems to small to hold the data. When I change this in phpMyadmin to varchar(255) the problem is solved, and i can check all 8 options.
You could say 'problem solved' But when I do a database update in Contao Extensions manager, Contao wants to change the field in the sql back to varchar(64) which would result in losing all entries in that field. That is no problem today or tomorrow, because there is only 1 field Contao want to change. But When I add an extention let's say next year, the chances are real that by then I will forget to uncheck that field in the Contao Update database, resulting in a large amount of data lost.
Is there a way I can tell Contao not to update that field ever. Or, even better, change the default for a Select Multiple attribute to varchar(255) ?
Thanks for your help.
I have a Select Multiple attribute which has 8 options. It works fine as long as only 3 options are checked. When checking more than 3 options, everything is erased.
I have been searching for the cause, and found that Select Multiple creates a varchar(64) field in the SQL database which seems to small to hold the data. When I change this in phpMyadmin to varchar(255) the problem is solved, and i can check all 8 options.
You could say 'problem solved' But when I do a database update in Contao Extensions manager, Contao wants to change the field in the sql back to varchar(64) which would result in losing all entries in that field. That is no problem today or tomorrow, because there is only 1 field Contao want to change. But When I add an extention let's say next year, the chances are real that by then I will forget to uncheck that field in the Contao Update database, resulting in a large amount of data lost.
Is there a way I can tell Contao not to update that field ever. Or, even better, change the default for a Select Multiple attribute to varchar(255) ?
Thanks for your help.
Kommentar