You are here

function quotes_update_8 in Quotes 5

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

File

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

Code

function quotes_update_8() {
  $ret = array();
  $ret[] = update_sql("ALTER TABLE {quotes} CHANGE citation citation TEXT");
  $ret[] = update_sql("ALTER TABLE {quotes_authors} DROP INDEX name");
  $ret[] = update_sql("ALTER TABLE {quotes_authors} CHANGE name name TEXT");
  $ret[] = update_sql("ALTER TABLE {quotes_authors} ADD INDEX name (name (255))");
  return $ret;
}