mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 11:55:03 +03:00
dba2a2970b
closes https://github.com/TryGhost/Team/issues/595 Due to a bug in `mrr_delta` calculation, we ended up reducing the MRR delta by twice the original amount when a subscription goes from active to canceled and storing it in `members_paid_subscription_events` table, which is used to show the MRR chart on Dashboard. The way we identify the incorrect events in the table which got the double negative value is by checking if they match certain criteria - Both `from_plan` and `to_plan` have same value as a subscription changes status while being on same plan. This migration halves the `mrr_delta` for incorrect events to restore the correct MRR change for the site. |
||
---|---|---|
.. | ||
db | ||
exporter | ||
importer | ||
migrations | ||
schema | ||
validation |