When trying to use the module the Status report page shows the following:

Mismatched entity and/or field definitions
The following changes were detected in the entity type and field definitions.
Order item

The Quantity field needs to be updated.

Having run into this before I then tried to do a drush entity-updates -y which in turn gave me the following feedback:

commerce_order_item entity type :
The Quantity field needs to be updated.
Do you wish to run all pending updates? (y/n): y
Drupal\Core\Entity\Exception\FieldStorageDefinitionUpdateForbiddenException: The SQL storage cannot change the schema for an existing field (quantity in commerce_order_item entity) with data. in [error]
Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema->updateSharedTableSchema() (line 1597 of
/usr/home/sites/sitename/public_html/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php).
Failed: Drupal\Core\Entity\Exception\FieldStorageDefinitionUpdateForbiddenException: !message in Drupal\Core\Entity\Sql\SqlContentEntityStorageSchema->updateSharedTableSchema() (line 1597 of [error]
/usr/home/sites/sitename/public_html/core/lib/Drupal/Core/Entity/Sql/SqlContentEntityStorageSchema.php).
Cache rebuild complete. [ok]
Finished performing updates.

Suggestions?

Comments

Christopher Riley created an issue. See original summary.

  • drugan committed 37ac471 on 8.x-1.x
    Issue #2990512 by Christopher Riley: Mismatched entity and/or field...
drugan’s picture

Status: Active » Fixed

Fixed. Run 8201 update.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.