You are here

function views_update_8 in Views (for Drupal 7) 5

File

./views.install, line 386

Code

function views_update_8() {
  $ret = array();
  switch ($GLOBALS['db_type']) {
    case 'mysql':
    case 'mysqli':
      $ret[] = update_sql("ALTER TABLE {view_view} MODIFY nodes_per_page int(5)");
      break;
    case 'pgsql':
      $ret[] = update_sql("ALTER TABLE {view_view} MODIFY nodes_per_page smallint");
      break;
  }
  return $ret;
}