You are here

function coder_review_update_2 in Coder 7

Create the cache_coder table.

File

coder_review/coder_review.install, line 46
Install, update and uninstall functions for the coder_review module.

Code

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

  // Create the new coder_review cache table.
  $schema = drupal_get_schema_unprocessed('system', 'cache');
  db_create_table($ret, 'cache_coder', $schema);

  // Clear coder_review entries from the default cache.
  cache_clear_all('coder:', 'cache', TRUE);
  return $ret;
}