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

8.0.x
catch 2013-09-02 22:29:44 +01:00
parent de0492e741
commit e1c40673b9
2 changed files with 50 additions and 46 deletions

View File

@ -309,6 +309,7 @@ function file_update_8003() {
if (in_array($field_config->get('type'), array('file', 'image'))) { if (in_array($field_config->get('type'), array('file', 'image'))) {
$field = new Field($field_config->get()); $field = new Field($field_config->get());
if (db_table_exists(DatabaseStorageController::_fieldTableName($field))) {
$tables = array( $tables = array(
DatabaseStorageController::_fieldTableName($field), DatabaseStorageController::_fieldTableName($field),
DatabaseStorageController::_fieldRevisionTableName($field), DatabaseStorageController::_fieldRevisionTableName($field),
@ -340,6 +341,7 @@ function file_update_8003() {
$field_config->save(); $field_config->save();
} }
} }
}
} }
/* /*

View File

@ -364,6 +364,7 @@ function taxonomy_update_8007() {
if ($field_config->get('type') == 'taxonomy_term_reference') { if ($field_config->get('type') == 'taxonomy_term_reference') {
$field = new Field($field_config->get()); $field = new Field($field_config->get());
if (db_table_exists(DatabaseStorageController::_fieldTableName($field))) {
$tables = array( $tables = array(
DatabaseStorageController::_fieldTableName($field), DatabaseStorageController::_fieldTableName($field),
DatabaseStorageController::_fieldRevisionTableName($field), DatabaseStorageController::_fieldRevisionTableName($field),
@ -390,4 +391,5 @@ function taxonomy_update_8007() {
$field_config->save(); $field_config->save();
} }
} }
}
} }