I created a module for my site with a table without standard fields of zikula. Now i want update the module and add the standard fields.
I have tried with this code in pninit.php, but the table was not updated.
Code
ObjectUtil::addStandardFieldsToTableDefinition ($tables['Mapas_column'], 'z_');
ObjectUtil::addStandardFieldsToTableDataDefinition($tables['Mapas_column_def']);
ObjectUtil::addStandardFieldsToTableDataDefinition($tables['Mapas_column_def']);
I have tried add these lines in the pntables too, and in the pninit.php I wrote
Code
DBUtil::ChangeTable('Mapas');
But the fields are not added to the table.
What's wrong? How can I add the standard fields to my table in a update of the module?
Thanks.
