You are here

function custom_breadcrumbs_update_2 in Custom Breadcrumbs 6.2

Same name and namespace in other branches
  1. 5 custom_breadcrumbs.install \custom_breadcrumbs_update_2()
  2. 6 custom_breadcrumbs.install \custom_breadcrumbs_update_2()
  3. 7.2 custom_breadcrumbs.install \custom_breadcrumbs_update_2()

File

./custom_breadcrumbs.install, line 117
Install file for the custom_breadcrumbs module.

Code

function custom_breadcrumbs_update_2() {
  $ret = array();
  switch ($GLOBALS['db_type']) {
    case 'mysql':
    case 'mysqli':
      $ret[] = update_sql("ALTER TABLE {custom_breadcrumb} ADD visibility_php text NOT NULL default ''");
      break;
    case 'pgsql':
      db_add_column($ret, 'custom_breadcrumb', 'visibility_php', 'text', array(
        'not null' => TRUE,
        'default' => "''",
      ));
      break;
  }
  return $ret;
}