You are here

function message_digest_update_8103 in Message Digest 8

Issue 3060135 Add index on {message_digest}.mid, drop unique key if present.

File

./message_digest.install, line 235
Install and update hooks for the Message Digest module.

Code

function message_digest_update_8103() {
  $schema = \Drupal::database()
    ->schema();
  $message_digest_schema = message_digest_schema();
  $spec = $message_digest_schema['message_digest'];
  $schema
    ->dropUniqueKey('message_digest', 'mid');
  $schema
    ->addIndex('message_digest', 'mid', [
    'mid',
  ], $spec);
}