You are here

function legal_update_1 in Legal 5

Same name and namespace in other branches
  1. 6.8 legal.install \legal_update_1()
  2. 6.7 legal.install \legal_update_1()

File

./legal.install, line 54

Code

function legal_update_1() {
  _system_update_utf8(array(
    'legal_accepted',
    'legal_conditions',
  ));
  switch ($GLOBALS['db_type']) {
    case 'mysqli':
    case 'mysql':
      $ret[] = update_sql("ALTER TABLE {legal_conditions} ADD extras TEXT");
      $ret[] = update_sql("ALTER TABLE {legal_conditions} ADD changes TEXT");
      break;
    default:
      break;
  }
  return $ret;
}