You are here

function avatar_selection_update_2 in Avatar Selection 5.2

Same name and namespace in other branches
  1. 5 avatar_selection.install \avatar_selection_update_2()

Adds to the current table structure another column, 'og_access'.

Return value

Array to which query results will be added.

File

./avatar_selection.install, line 141
The Avatar Selection module install file.

Code

function avatar_selection_update_2() {
  $ret = array();
  switch ($GLOBALS['db_type']) {
    case 'mysqli':
    case 'mysql':
      $ret[] = update_sql("ALTER TABLE {avatar_selection} ADD COLUMN og_access varchar(255)");
      break;
    case 'pgsql':
      $ret[] = update_sql("ALTER TABLE {avatar_selection} ADD COLUMN og_access varchar(255)");
      break;
  }
  return $ret;
}