For existing EntityReference User Reference fields from < 7.x-1.0-beta4, it appears possible to end up with corrupt field schemas even after the schema version is 7001. I've atatched a screenshot of the problem, showing the field_config data for an old, pre 7.x-1.0-beta4 user reference field, vs. a new 7.0-1.0-rc1 created user reference field.

Aas requested at #1491454: Alterations of EFQ needs to be made more robust, I've opened a new issue for this problem. The solution of ignoring the bundle filter setting if no foreign key set should work, given what's in the screenshot.

I'm still investigating and trying to reproduce how my schema got in this state. Curiously, my SQL storage database tables had been updated to the correct schema (ie. no field_foo_target_type column). My system table schema version was 7001, but the field_config row (shown in attached screenshot) was not updated. If I can reproduce that I"ll open a separate issue about it.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

damien_vancouver’s picture