Danbooru

Posts with inaccurate has_children/parent_id values

Posted under Bugs & Features

6 posts have inaccurate information for has_children and/or parent_id stored for them.

Has children, but doesn't notice them (bad parents):
post #2139664
post #2142291

Claims to have children, but no post have them set as their parent:
post #2363502
post #2787604
post #2787609
post #2787610

(Warning, all but the last post are not rating:safe)

I tried fixing the first two, but I guess a basic edit update doesn't automatically fix it. The other four are all deleted and I got a bit confused as to who is the parent or child. You can find the related posts with Similar Images. From the queries I've ran with my database dump, all other relations seem to be fine.

I fixed the first two by removing the parent and then re-adding it, not touching the last ones since those state they are permanently deleted yet they still are on the server.

  • 1