You are here

function search_api_grouping_update_7000 in Search API Grouping 7.2

Add new columns required for processing.

File

./search_api_grouping.install, line 89
Installation and update hooks for search_api_denormalized_entity.

Code

function search_api_grouping_update_7000() {
  $schema = search_api_grouping_schema();
  if (isset($schema['search_api_denormalized_entity']['fields']['needs_processing']) && !db_field_exists('search_api_denormalized_entity', 'needs_processing')) {
    db_add_field('search_api_denormalized_entity', 'needs_processing', $schema['search_api_denormalized_entity']['fields']['needs_processing']);
  }
  if (isset($schema['search_api_denormalized_entity']['fields']['queued']) && !db_field_exists('search_api_denormalized_entity', 'queued')) {
    db_add_field('search_api_denormalized_entity', 'queued', $schema['search_api_denormalized_entity']['fields']['queued']);
  }
}