You are here

function privatemsg_update_7000 in Privatemsg 7

Same name and namespace in other branches
  1. 7.2 privatemsg.install \privatemsg_update_7000()

Add has_tokens field to indicate if a message is using tokens.

File

./privatemsg.install, line 182
Install file for privatemsg.module

Code

function privatemsg_update_7000() {
  db_add_field('pm_message', 'has_tokens', array(
    'description' => 'Indicates if the message has tokens',
    'type' => 'int',
    'size' => 'small',
    'not null' => TRUE,
    'unsigned' => TRUE,
    'default' => 0,
  ));
}