mirror of
https://github.com/discourse/discourse.git
synced 2025-03-09 14:34:35 +00: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