You are here

function mongodb_watchdog_update_6000 in MongoDB 6

Changes a variable name that defines a collection to store events.

File

mongodb_watchdog/mongodb_watchdog.install, line 106

Code

function mongodb_watchdog_update_6000() {
  $collection_name = variable_get('mongodb_collectionname', 'watchdog');
  if ($collection_name !== 'watchdog') {
    variable_set('mongodb_watchdog', $collection_name);
  }
  variable_del('mongodb_collectionname');
  variable_del('mongodb_watchdog_collectionname');
}