function search_api_update_7103 in Search API 7
Add the database fields newly required for entities by the Entity API.
File
- ./
search_api.install, line 602 - Install, update and uninstall functions for the Search API module.
Code
function search_api_update_7103() {
if (!function_exists('entity_exportable_schema_fields')) {
throw new DrupalUpdateException(t('Please update the Entity API module first.'));
}
foreach (array(
'search_api_server',
'search_api_index',
) as $table) {
foreach (entity_exportable_schema_fields() as $field => $spec) {
db_add_field($table, $field, $spec);
}
}
}