You are here

function system_update_149 in Drupal 5

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

File

modules/system/system.install, line 1944

Code

function system_update_149() {
  $ret = array();
  switch ($GLOBALS['db_type']) {
    case 'pgsql':
      db_add_column($ret, 'files', 'description', 'varchar(255)', array(
        'not null' => TRUE,
        'default' => "''",
      ));
      break;
    case 'mysql':
    case 'mysqli':
      $ret[] = update_sql("ALTER TABLE {files} ADD COLUMN description VARCHAR(255) NOT NULL DEFAULT ''");
      break;
    default:
      break;
  }
  return $ret;
}