Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 293673

Error uninstalling storage field

$
0
0

In the hook update paragraph to remove field, for some reason when calling the uninstallFieldStorageDefinition function it assembles getTableMapping with all revision fields including.

With this, it tries to delete the revision_uid field in the paragraphs_item_field_data table that has the uid field and not revision_uid.

To play:
1- Install the paragraph module version 1.2
2- Update the paragraph module to version 1.8 (https://www.drupal.org/project/paragraphs)
3- Turn the updb drush.

Show this error:
Drupal\Core\Database\DatabaseExceptionWrapper: SQLSTATE[42S22]: Column not found: 1054 Unknown column 'revision_uid' in 'where clause': SELECT 1 AS expression FROM {paragraphs_item_field_data} t WHERE revision_uid IS NOT NULL LIMIT 1 OFFSET 0; Array ( ) in Drupal\Core\Entity\Sql\SqlContentEntityStorage->countFieldData() (line 1804 of /var/www/html/web/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorage.php).


Viewing all articles
Browse latest Browse all 293673

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>