You are here

function content_theme_update_6100 in Content Theme 6

Same name and namespace in other branches
  1. 7.2 content_theme.install \content_theme_update_6100()
  2. 7 content_theme.install \content_theme_update_6100()

Implementation of hook_update_N().

Changes default value for theme field.

File

./content_theme.install, line 89
Install, update and uninstall functions for the content_theme module.

Code

function content_theme_update_6100() {
  $ret = array();
  db_drop_primary_key($ret, 'content_theme_node');
  db_change_field($ret, 'content_theme_node', 'theme', 'theme', array(
    'type' => 'varchar',
    'length' => 255,
    'not null' => TRUE,
    'default' => '',
  ), array(
    'primary key' => array(
      'nid',
      'action',
    ),
  ));
  return $ret;
}