function perfmon_update_81002 in Performance monitor 8
Update keys of perfmon table.
File
- ./
perfmon.install, line 84 - Install, update and uninstall functions for the perfmon module.
Code
function perfmon_update_81002() {
$schema = \Drupal::database()
->schema();
$schema
->dropPrimaryKey('perfmon');
$schema
->addPrimaryKey('perfmon', [
'id',
]);
$schema
->addUniqueKey('perfmon', 'testname', [
'testname',
]);
}