function entityform_update_7001 in Entityform 7.2
Same name and namespace in other branches
- 7 entityform.install \entityform_update_7001()
Implements hook_update_N(). Adds draft column
File
- ./
entityform.install, line 138 - Sets up the base table for our entity and a table to store information about the entity types.
Code
function entityform_update_7001(&$sandbox = NULL) {
if (!db_field_exists('entityform', 'draft')) {
db_add_field('entityform', 'draft', array(
'type' => 'int',
'size' => 'tiny',
'not null' => TRUE,
'default' => 0,
));
drupal_get_schema('entityform', TRUE);
}
}