You are here

function performance_update_6201 in Performance Logging and Monitoring 6.2

Add new language field to performance_detail table.

File

./performance.install, line 402
Install and update for Performance Logging

Code

function performance_update_6201() {
  $ret = array();
  $field = 'language';
  $table = 'performance_detail';

  // See http://drupal.org/node/150220.
  $language = array(
    'description' => 'The {languages}.language used when calling this path.',
    'type' => 'varchar',
    'length' => 12,
    'not null' => TRUE,
    'default' => '',
  );
  if (!db_column_exists($table, $field)) {
    db_add_field($ret, $table, $field, $language);
  }
  return $ret;
}