You are here

function message_update_7004 in Message 7

Rename the 'name' column to 'type' in {Message}.

File

./message.install, line 379
Install, update, and uninstall functions for the message module.

Code

function message_update_7004() {
  $column = array(
    'description' => 'Reference to a message a type.',
    'type' => 'varchar',
    'length' => 255,
    'not null' => TRUE,
    'default' => '',
  );
  db_change_field('message', 'name', 'type', $column);
}