You are here

function signature_forum_update_2 in Signatures for Forums 5.2

Same name and namespace in other branches
  1. 5 signature_forum.install \signature_forum_update_2()

Implementation of hook_update()

File

./signature_forum.install, line 89

Code

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

  // We only bother to update MySQL here, before this version PostgreSQL didn't work
  switch ($GLOBALS['db_type']) {
    case 'mysql':
    case 'mysqli':
      $ret[] = update_sql("ALTER TABLE {users_signature} MODIFY uid integer");
      $ret[] = update_sql("ALTER TABLE {users_signature} MODIFY signature text default NULL");
      break;
  }
  return $ret;
}