Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In the Schema report for our site, we show the following allegedly extra fields in the field_rating tables:
field_data_field_rating
field_rating_rating: unexpected column in database
field_rating_target: unexpected column in database
Hidefield_revision_field_rating
field_rating_rating: unexpected column in database
field_rating_target: unexpected column in database
I’m assuming these are cruft from an old implementation of the module. Is that correct? Can I safely delete these fields?
Comments
Comment #1
whiteph CreditAttribution: whiteph commentedThe field_rating_rating column is actively used. I've only seen NULL values in field_rating_target. I suspect bad things would happen if you deleted them.
In fact, the move has been away from Voting API towards the field system - so this isn't legacy cruft. See Loose the hard dependency on votingapi
Comment #2
whiteph CreditAttribution: whiteph commentedComment #3
somatics CreditAttribution: somatics commentedSo why is the Schema report indicating that those columns are not supposed to be there according to the schema set forth by the module code? Is this a bug in the Schema module instead? Is it a bug in how the Fivestar module reports itself to the rest of the Drupal codebase?
I'm glad to hear the module is working as designed, but it seems like it would be good to also put to rest the reason for the false error reporting.
Comment #4
dbt102 CreditAttribution: dbt102 at BACnet Interest Group - Drupal for BACnet Interest Group - Drupal commentedPlease test with 7.x-2.2 release and report back, as there have been a lot of fixes applied since then.