mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Previously, if the upload_id was present, but the upload was missing, the entire site would give a server error. We have no foreign keys on this relation, so we have to be able to cope with the situation where the upload_id is present, but the actual upload has been deleted. Co-authored-by: Jarek Radosz <jradosz@gmail.com>