Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Backfilled missing offer redemptions (#20647)
ref https://linear.app/tryghost/issue/ENG-1440/backfill-offer-redemption-data-with-a-migration There was a bug that caused offer redemptions to not be recorded in the database for some subscriptions that were created with an offer. However, we still have the `offer_id` attached to the subscriptions, so we are able to backfill the missing redemptions. The bug was fixed in bf895e6 This commit only contains a migration, which queries for subscriptions that have an `offer_id` but do not have any offer redemptions recorded, and adds any missing redemptions to the `offer_redemptions` table.
- Loading branch information