You are here

function system_update_149 in Drupal 4

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

File

database/updates.inc, line 834

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