search_api_solr.post_update.php in Search API Solr 8.3
File
search_api_solr.post_update.php
View source
<?php
function search_api_solr_post_update_8204_replace_solr_4_field_types() {
try {
$storage = \Drupal::entityTypeManager()
->getStorage('solr_field_type');
$storage
->delete($storage
->loadMultiple([
'm_text_und_5_2_0',
'text_und_4_5_0',
'm_text_de_5_2_0',
'm_text_en_5_2_0',
'm_text_nl_5_2_0',
'text_cs_5_0_0',
'text_de_4_5_0',
'text_de_5_0_0',
'text_de_scientific_5_0_0',
'text_el_4_5_0',
'text_en_4_5_0',
'text_es_4_5_0',
'text_fi_4_5_0',
'text_fr_4_5_0',
'text_it_4_5_0',
'text_nl_4_5_0',
'text_ru_4_5_0',
'text_uk_4_5_0',
]));
} catch (\Exception $e) {
}
}
function search_api_solr_post_update_8319() {
if (\Drupal::moduleHandler()
->moduleExists('search_api_solr_multilingual')) {
$module_installer = \Drupal::service('module_installer');
$module_installer
->uninstall([
'search_api_solr_multilingual',
]);
}
module_load_include('install', 'search_api_solr');
search_api_solr_update_helper_install_configs();
}