mirror of
https://github.com/discourse/discourse.git
synced 2025-02-10 21:34:50 +00:00
In extreme circumstances when the uploads table is huge, the old version of this migration could take a very long time. The rewrite extracts the sha1 directly from the badges table and does an index based match on the uploads table