Skip to content
Snippets Groups Projects
Commit e1c40673 authored by catch's avatar catch
Browse files

Issue #2078837 by alexpott: Fixed Ensure that we are using SQL storage for taxonomy_update_8007().

parent de0492e7
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -309,6 +309,7 @@ function file_update_8003() {
if (in_array($field_config->get('type'), array('file', 'image'))) {
$field = new Field($field_config->get());
if (db_table_exists(DatabaseStorageController::_fieldTableName($field))) {
$tables = array(
DatabaseStorageController::_fieldTableName($field),
DatabaseStorageController::_fieldRevisionTableName($field),
......@@ -341,6 +342,7 @@ function file_update_8003() {
}
}
}
}
/*
* Convert the 'filesize' column in {file_managed} to a bigint.
......
......@@ -364,6 +364,7 @@ function taxonomy_update_8007() {
if ($field_config->get('type') == 'taxonomy_term_reference') {
$field = new Field($field_config->get());
if (db_table_exists(DatabaseStorageController::_fieldTableName($field))) {
$tables = array(
DatabaseStorageController::_fieldTableName($field),
DatabaseStorageController::_fieldRevisionTableName($field),
......@@ -391,3 +392,4 @@ function taxonomy_update_8007() {
}
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment