Ghost/core/server/data/migrations/versions/4.9
Fabien O'Carroll 8a87eb9e36 Migrated members_status_events for comped members
refs https://github.com/TryGhost/Team/issues/790

Since version 4.6 the 'comped' status has not been used. Any members
which were given complimentary plans since then will have had a `status`
of 'paid', and therefore the corresponding members_status_events row
would have a `to_status` of 'paid'.

This migration is designed to fix these members_status_events rows by
ensuring that the last (chronologically) members_status_event row for a
comped member has a to status of 'comped'.

Unfortuantely this migration loses information which makes writing a
perfect inverse migraion impossible. Alternative down migrations were
considered, but these would lose further information.
2021-07-06 12:00:03 +01:00
..
01-add-reset-all-passwords-permission.js Moved the "Reset all passwords" permission migration to Ghost 4.9 2021-06-23 17:08:44 +02:00
02-add-benefits-table.js Added benefits table 2021-06-24 17:21:01 +01:00
03-add-products-benefits-table.js Added products_benefits table 2021-06-24 17:21:01 +01:00
04-add-member-segment-to-email-batches.js Added member segment to email batches 2021-06-30 14:56:20 +02:00
05-fix-missed-mobiledoc-url-transforms.js 🐛 Fixed incorrectly stored URLs after migration from 3.x to 4.6.1-4.8.4 (#13109) 2021-07-06 10:15:00 +01:00
06-add-comped-status.js Migrated comped members to 'comped' status 2021-07-06 12:00:03 +01:00
07-update-comped-members-status-events.js Migrated members_status_events for comped members 2021-07-06 12:00:03 +01:00