You are here

function content_theme_update_6100 in Content Theme 7

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

Change default value for theme field.

File

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

Code

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