This was brought to my attention in #310047: Field is not removed from shared content_field_XXX table on delete, where files that were deleted were leaving their data in the field tables. This means that sites upgraded from Drupal 5 are also likely have a large number of lingering entries in their field tables that don't actually match any entries in the files table.

This update sets those rows properly to NULL.

CommentFileSizeAuthor
filefield_empty_rows_update.patch1.32 KBquicksketch
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

quicksketch’s picture

Status: Needs review » Fixed

Committed.

Status: Fixed » Closed (fixed)

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