You are here

function views_update_4 in Views (for Drupal 7) 5

File

./views.install, line 344

Code

function views_update_4() {
  $ret = array();
  switch ($GLOBALS['db_type']) {
    case 'mysql':
    case 'mysqli':
      $small = 'int(4)';
      $tiny = 'int(1)';
    case 'pgsql':
      $small = $tiny = 'smallint';
      break;
  }
  db_add_column($ret, 'view_view', 'page_footer', 'longtext');
  db_add_column($ret, 'view_view', 'page_footer_format', $small, array(
    'default' => 0,
  ));
  db_add_column($ret, 'view_view', 'block_use_page_footer', $tiny);
  db_add_column($ret, 'view_view', 'block_footer', 'longtext');
  db_add_column($ret, 'view_view', 'block_footer_format', $small, array(
    'default' => 0,
  ));
  db_add_column($ret, 'view_view', 'page_empty', 'longtext');
  db_add_column($ret, 'view_view', 'page_empty_format', $small, array(
    'default' => 0,
  ));
  db_add_column($ret, 'view_view', 'block_use_page_empty', $tiny);
  db_add_column($ret, 'view_view', 'block_empty', 'longtext');
  db_add_column($ret, 'view_view', 'block_empty_format', $small, array(
    'default' => 0,
  ));
  return $ret;
}