You are here

function panels_content_cache_update_6001 in Panels Content Cache 6

Update 6001 - Add new field menu_name and change type field schema.

File

./panels_content_cache.install, line 51

Code

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

  // Add in menu_name column.
  db_add_field($ret, 'panels_content_cache', 'menu_name', array(
    'description' => 'The menu name if selected.',
    'type' => 'varchar',
    'length' => 32,
    'default' => NULL,
  ));

  // Change type field to allow default NULL value.
  db_change_field($ret, 'panels_content_cache', 'type', 'type', array(
    'description' => 'The {node_type}.type.',
    'type' => 'varchar',
    'length' => 32,
    'default' => NULL,
  ));
  return $ret;
}