mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 22:49:39 +08:00

A giant transaction in a post migration can be very risky. This splits the large amount of work this migration needs to do into 2 parts: 1. A re-runnable cleanup job prior to transaction 2. A minimally sized transaction to add the database constraint This avoids large amounts of churn on the table