You are here

function quotes_update_6103 in Quotes 6

Implementation of hook_update_N(). Change citation, author name to TEXT.

File

./quotes.install, line 384
Handles installation and updates for the quotes module.

Code

function quotes_update_6103() {
  $ret = array();
  db_change_field($ret, 'quotes', 'citation', 'citation', array(
    'type' => 'text',
    'not null' => FALSE,
  ));
  db_drop_index($ret, 'quotes_authors', 'name');
  db_change_field($ret, 'quotes_authors', 'name', 'name', array(
    'type' => 'text',
    'not null' => FALSE,
  ));
  db_add_index($ret, 'quotes_authors', 'name', array(
    array(
      'name',
      255,
    ),
  ));
  return $ret;
}