You are here

function perfmon_update_8101 in Performance monitor 8

Add serial id key to perfmon talbe.

File

./perfmon.install, line 71
Install, update and uninstall functions for the perfmon module.

Code

function perfmon_update_8101() {
  $spec = [
    'type' => 'serial',
    'not null' => TRUE,
    'default' => 0,
  ];
  $schema = \Drupal::database()
    ->schema();
  $schema
    ->addField('perfmon', 'id', $spec);
}