Even though the weight module does not have automated tests, I am running tests against a custom module that uses a weight field, and have received the following errors:
Schema errors for field.storage.commerce_product.field_weight with the following errors: field.storage.commerce_product.field_weight:settings.unsigned missing schema
Schema errors for field.field.commerce_product.default.field_weight with the following errors: field.field.commerce_product.default.field_weight:settings.range missing schema
Schema errors for field.field.commerce_product.default.field_weight with the following errors: field.field.commerce_product.default.field_weight:default_value.0.value missing schema
It seems the module needs to define some schema.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | weight-config-schema-2879975-1.patch | 643 bytes | steveoliver |
Comments
Comment #2
steveoliver commentedPatch works for me.
Comment #3
steveoliver commentedI suppose the default value (value) should be an integer not a string.
Comment #4
steveoliver commentedIn my tests, though, string is the type that Drupal expects for the default value. (Patch 1).
Comment #5
sheanhoxiePatch works
Comment #7
ziomizar commented