You are here

function system_update_127 in Drupal 4

Same name and namespace in other branches
  1. 5 modules/system/system.install \system_update_127()

File

database/updates.inc, line 417

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;
}