You are here

function follow_update_6003 in Follow 6

Add a title field.

File

./follow.install, line 169
Follow module's install and uninstall code.

Code

function follow_update_6003() {
  $ret = array();

  // Check to make sure the title column doesn't exists before running this
  // update. The only instance I can think of where this might happen is a D5 to
  // D6 upgrade.
  if (!db_column_exists('follow_links', 'title')) {
    $schema = follow_schema();
    $title = $schema['follow_links']['fields']['title'];
    db_add_field($ret, 'follow_links', 'title', $title);
  }
  return $ret;
}