You are here

function gallery_assist_update_2 in Gallery Assist 6

Implementation of hook_update_N().

File

./gallery_assist.install, line 575
Install, update and uninstall functions and DB tables for the Gallery Assist module.

Code

function gallery_assist_update_2() {
  $ret = array();
  $db_field = array(
    'type' => 'text',
    'size' => 'big',
    'not null' => TRUE,
    'description' => 'Contains extra configuration data for each gallery.',
  );
  db_change_field($ret, 'gallery_assist', 'data', 'data', $db_field);
  $table = drupal_get_schema_unprocessed('system', 'cache');
  $table['description'] = 'Cache table for gallery_assist to store pre-rendered queries, results, and display output.';
  $table['fields']['serialized']['default'] = 1;
  db_create_table($ret, 'cache_gallery_assist_data', $table);
  cache_clear_all(NULL, 'cache_block');
  return $ret;
}