You are here

function http_response_headers_update_7001 in HTTP Response Headers 7

Convert "types" and "roles" db columns from varchar to text.

File

./http_response_headers.install, line 119
Install, update and uninstall functions for the HTTP response headers module.

Code

function http_response_headers_update_7001() {
  $types_new_spec = array(
    'type' => 'text',
    'not null' => FALSE,
    'description' => 'Content types',
  );
  db_change_field('http_response_headers', 'types', 'types', $types_new_spec);
  $roles_new_spec = array(
    'type' => 'text',
    'not null' => FALSE,
    'description' => 'User roles',
  );
  db_change_field('http_response_headers', 'roles', 'roles', $roles_new_spec);
}