You are here

function system_update_127 in Drupal 5

Same name and namespace in other branches
  1. 4 database/updates.inc \system_update_127()

File

modules/system/system.install, line 1527

Code

function system_update_127() {
  $ret = array();
  if ($GLOBALS['db_type'] == 'pgsql') {
    $ret[] = update_sql("ALTER TABLE {poll} RENAME voters TO polled");
  }
  else {
    if ($GLOBALS['db_type'] == 'mysql') {
      $ret[] = update_sql("ALTER TABLE {poll} CHANGE voters polled longtext");
    }
  }
  return $ret;
}