You are here

function messaging_simple_update_6001 in Messaging 7

Same name and namespace in other branches
  1. 6.4 messaging_simple/messaging_simple.install \messaging_simple_update_6001()
  2. 6.3 messaging_simple/messaging_simple.install \messaging_simple_update_6001()

Update: Create table and move messages from messaging_store

File

messaging_simple/messaging_simple.install, line 58

Code

function messaging_simple_update_6001() {
  $ret = array();
  drupal_install_schema('messaging_simple');
  $ret[] = update_sql("INSERT INTO {messaging_simple}(mqid, language, uid, sender, subject, body, sent) SELECT mqid, language, uid, sender, subject, body, created FROM {messaging_store} WHERE method = 'simple'");
  $ret[] = update_sql("DELETE FROM {messaging_store} WHERE method = 'simple'");
  return $ret;
}