You are here

function advancedqueue_update_8101 in Advanced Queue 8

Add an index to the state column.

File

./advancedqueue.install, line 95
Contains install and update functions for Advanced queue.

Code

function advancedqueue_update_8101() {
  $spec = advancedqueue_schema();
  $schema = Database::getConnection()
    ->schema();
  $schema
    ->addIndex('advancedqueue', 'queue_state', [
    'state',
  ], $spec['advancedqueue']);
}