You are here

function views_send_update_6003 in Views Send 7

Same name and namespace in other branches
  1. 6 views_send.install \views_send_update_6003()

Backend structure is altered for implementing http://drupal.org/node/808058

File

./views_send.install, line 136
The install and update code for the Views Send module.

Code

function views_send_update_6003() {
  $ret = array();

  // Get updated schema.
  $schema = views_send_schema();

  // Rename body field from 'message' to 'body'.
  db_change_field($ret, 'views_send_spool', 'message', 'body', $schema['views_send_spool']['fields']['body']);

  // Drop other fields that are obsolete after spooling.
  db_drop_field($ret, 'views_send_spool', 'format');
  db_drop_field($ret, 'views_send_spool', 'priority');
  db_drop_field($ret, 'views_send_spool', 'receipt');
  return $ret;
}