You are here

function performance_update_7201 in Performance Logging and Monitoring 7.2

Add new language field to performance_detail table.

File

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

Code

function performance_update_7201() {
  $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_field_exists($table, $field)) {
    db_add_field($table, $field, $language);
    return t('Created language field in performance_detail table.');
  }
}