You are here

function messaging_template_update_6002 in Messaging 6.4

Add format and data field

1 call to messaging_template_update_6002()
messaging_update_6013 in ./messaging.install
Fix template_parts table, may be missing new field depending on update path

File

messaging_template/messaging_template.install, line 89

Code

function messaging_template_update_6002() {
  $ret = array();
  db_add_field($ret, 'messaging_message_parts', 'format', array(
    'type' => 'int',
    'not null' => TRUE,
    'default' => 0,
  ));
  db_add_field($ret, 'messaging_message_parts', 'data', array(
    'type' => 'text',
    'not null' => TRUE,
    'size' => 'big',
    'default' => '',
    'serialize' => TRUE,
  ));
  return $ret;
}