PHP midgard_config method update_class_table
Updates given class' table.
bool update_class_table(classname);
midgard_config method update_class_table takes one parameter:
- classname, name of the class for which table should be updated
This method may be called statically. It's safe to invoke this method as many times as needed. Internally all metadata columns or indexes are created if do not exist in table. Colmun type is updated only if it is different then the one defined in MgdSchema xml file.
Returns TRUE if table has been successfully updated ( or if table already exist ), FALSE otherwise.
Example
<?php
foreach($_MIDGARD['schema']['types'] as $class => $d)
{
midgard_config::update_class_table($class);
}
?>
