You are here

function message_update_7010 in Message 7

Create cache bins for Entity-cache module.

File

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

Code

function message_update_7010() {
  $cache_schema = drupal_get_schema_unprocessed('system', 'cache');
  $types = array(
    'message_type_category',
    'message_type',
    'message',
  );
  foreach ($types as $type) {
    $schema["cache_entity_{$type}"] = $cache_schema;
    $schema["cache_entity_{$type}"]['description'] = "Cache table used to store {$type} entity records.";
  }
  foreach ($schema as $name => $table) {
    db_create_table($name, $table);
  }
}