You are here

function page_theme_update_6103 in Page Theme 6

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

Implementation of hook_update_N().

Fix default value for theme field.

File

./page_theme.install, line 137
Install, update and uninstall functions for the page_theme module.

Code

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