Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
#1497374: Switch from Field-based storage to Entity-based storage changed the following checks to ensure that the upgrade is against SQL and not some other storage engines.
+++ b/core/modules/file/file.install
@@ -305,21 +306,21 @@ function file_update_8003() {
- if (in_array($field_config->get('type'), array('file', 'image')) && $field_config->get('storage.type') == 'field_sql_storage') {
+ if (in_array($field_config->get('type'), array('file', 'image'))) {
+++ b/core/modules/taxonomy/taxonomy.install
@@ -356,16 +361,16 @@ function taxonomy_update_8007() {
- if ($field_config->get('type') == 'taxonomy_term_reference' && $field_config->get('storage.type') == 'field_sql_storage') {
+ if ($field_config->get('type') == 'taxonomy_term_reference') {
$field = new Field($field_config->get());
We need to re-instate some from of check - perhaps just check if the tables exist.
Comment | File | Size | Author |
---|---|---|---|
#2 | 2078837.1-no-whitespace-do-not-test.patch | 1.41 KB | alexpott |
#2 | 2078837.1.patch | 5.01 KB | alexpott |
Comments
Comment #1
chx CreditAttribution: chx commentedyes
Comment #2
alexpottHow about?
Comment #3
chx CreditAttribution: chx commentedYes, this definitely can work.
Comment #4
catchCommitted/pushed to 8.x, thanks!