Zikula 1.2.8.
I was modifying a custom module for new requeriments. I needed a field with the name "SET", so, in pntables.php, I added a new field with this name, but when i used in pninit.php the sentence:
Code
if (!DBUtil::changeTable('my_table')) {
return false;
}
return false;
}
In the update module, the process return the message error:
Code
Error! Actualización de tabla fallida. (my_table, 1, 0 - )
Error! Update of table
Error! Update of table
Using the file "DBUtil.class.php" and a lines with print and die, i can see that the ChangeTable use the sentence
Code
ALTER TABLE my_table MODIFY COLUMN set INTEGER
I can see that mysql "use" "set" how an own sentence and this is the reason for the error.
If the line was:
Code
ALTER TABLE my_table MODIFY COLUMN `set` INTEGER
the problem will be fixed.
I hope that this problem can help to others developers and this "error" can be fixed in a future (ZK 1.2.9?)
Thanks for all.
