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.

Comments

steveoliver created an issue. See original summary.

steveoliver’s picture

Status: Active » Needs review
StatusFileSize
new643 bytes

Patch works for me.

steveoliver’s picture

StatusFileSize
new644 bytes

I suppose the default value (value) should be an integer not a string.

steveoliver’s picture

In my tests, though, string is the type that Drupal expects for the default value. (Patch 1).

sheanhoxie’s picture

Status: Needs review » Reviewed & tested by the community

Patch works

  • ziomizar committed 8de19d4 on 8.x-3.x authored by steveoliver
    Issue #2879975 by steveoliver: Add missing schema required during...
ziomizar’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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