You are here

function bbb_update_6100 in BigBlueButton 6

Implement hook_update_N().

File

./bbb.install, line 107
Big Blue Button - Enables universities and colleges to deliver a high-quality learning experience.

Code

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

  // Update database schema API v0.64
  db_drop_field($ret, 'bbb_meetings', 'meetingToken');
  db_drop_field($ret, 'bbb_meetings', 'voiceBridge');
  db_add_field($ret, 'bbb_meetings', 'initialized', array(
    'type' => 'int',
    'not null' => TRUE,
    'description' => t('TODO: please describe this field!'),
  ));

  // Update API url
  if ($bbb_base_url = variable_get('bbb_base_url', FALSE)) {
    $new_bbb_base_url = $bbb_base_url . 'api/';
    variable_set('bbb_base_url', $new_bbb_base_url);
    $ret[] = array(
      'success' => TRUE,
      'query' => t('The API url has been updated from %url to %new_url successfully.', array(
        '%url' => $bbb_base_url,
        '%new_url' => $new_bbb_base_url,
      )),
    );
  }
  return $ret;
}