You are here

function views_update_15 in Views (for Drupal 7) 5

File

./views.install, line 461

Code

function views_update_15() {
  $ret = array();
  db_add_column($ret, 'view_view', 'menu_tab_default_parent_type', 'varchar(10)');
  db_add_column($ret, 'view_view', 'menu_parent_title', 'varchar(255)');
  switch ($GLOBALS['db_type']) {
    case 'mysql':
    case 'mysqli':
      db_add_column($ret, 'view_view', 'menu_parent_tab_weight', 'int(4)');
      break;
    case 'pgsql':
      db_add_column($ret, 'view_view', 'menu_parent_tab_weight', 'smallint');
      break;
  }
  return $ret;
}