0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-24 23:48:13 -05:00
ghost/core/server/data/migrations/versions
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
..
1.3 Refactored 'add column' migrations to use helper 2020-11-25 13:56:10 +00:00
1.4 Refactored 'add column' migrations to use helper 2020-11-25 13:56:10 +00:00
1.5 Refactored 'add column' migrations to use helper 2020-11-25 13:56:10 +00:00
1.7
1.9
1.13 Refactored 'add column' migrations to use helper 2020-11-25 13:56:10 +00:00
1.18 Refactored 'add table' migrations to use helper 2020-11-25 13:56:10 +00:00
1.19
1.20 Change to use @tryghost/logging 2021-06-15 15:59:11 +01:00
1.21 Change to use @tryghost/logging 2021-06-15 15:59:11 +01:00
1.22 Change to use @tryghost/logging 2021-06-15 15:59:11 +01:00
1.25 Change to use @tryghost/logging 2021-06-15 15:59:11 +01:00
2.0 Change to use @tryghost/logging 2021-06-15 15:59:11 +01:00
2.2 Change to use @tryghost/logging 2021-06-15 15:59:11 +01:00
2.3 Refactored 'add column' migrations to use helper 2020-11-25 13:56:10 +00:00
2.6
2.8 Refactored 'add table' migrations to use helper 2020-11-25 13:56:10 +00:00
2.13
2.14 Refactored 'add table' migrations to use helper 2020-11-25 13:56:10 +00:00
2.15 Change to use @tryghost/logging 2021-06-15 15:59:11 +01:00
2.16
2.17 Change to use @tryghost/logging 2021-06-15 15:59:11 +01:00
2.18 Moved settings/cache to shared/settings-cache 2021-06-30 15:49:10 +01:00
2.21
2.22
2.27 Change to use @tryghost/logging 2021-06-15 15:59:11 +01:00
2.28 Change to use @tryghost/logging 2021-06-15 15:59:11 +01:00
2.29 Change to use @tryghost/logging 2021-06-15 15:59:11 +01:00
2.31 Refactored column migrations to use helpers (#12360) 2020-11-16 11:55:51 +00:00
2.32 Refactored column migrations to use helpers (#12360) 2020-11-16 11:55:51 +00:00
2.33 Change to use @tryghost/logging 2021-06-15 15:59:11 +01:00
2.34 Refactored 'add table' migrations to use helper 2020-11-25 13:56:10 +00:00
2.35 Refactored column migrations to use helpers (#12360) 2020-11-16 11:55:51 +00:00
2.37 Change to use @tryghost/logging 2021-06-15 15:59:11 +01:00
3.0 Change to use @tryghost/logging 2021-06-15 15:59:11 +01:00
3.1 Change to use @tryghost/logging 2021-06-15 15:59:11 +01:00
3.2 Refactored column migrations to use helpers (#12360) 2020-11-16 11:55:51 +00:00
3.6 Refactored 'add table' migrations to use helper 2020-11-25 13:56:10 +00:00
3.7 Change to use @tryghost/logging 2021-06-15 15:59:11 +01:00
3.8 Refactored column migrations to use helpers (#12360) 2020-11-16 11:55:51 +00:00
3.9
3.11 Switch to @tryghost/debug, remove ghost-ignition 2021-06-15 17:24:22 +01:00
3.12 Switch to @tryghost/debug, remove ghost-ignition 2021-06-15 17:24:22 +01:00
3.18
3.19 Switch to @tryghost/debug, remove ghost-ignition 2021-06-15 17:24:22 +01:00
3.22 Change to use @tryghost/logging 2021-06-15 15:59:11 +01:00
3.23 Change to use @tryghost/logging 2021-06-15 15:59:11 +01:00
3.24 Change to use @tryghost/logging 2021-06-15 15:59:11 +01:00
3.25 Change to use @tryghost/logging 2021-06-15 15:59:11 +01:00
3.26 Change to use @tryghost/logging 2021-06-15 15:59:11 +01:00
3.29 Change to use @tryghost/logging 2021-06-15 15:59:11 +01:00
3.30
3.32 Change to use @tryghost/logging 2021-06-15 15:59:11 +01:00
3.33 Refactored 'add table' migrations to use helper 2020-11-25 13:56:10 +00:00
3.34
3.35 Refactored column migrations to use helpers (#12360) 2020-11-16 11:55:51 +00:00
3.36
3.37 Change to use @tryghost/logging 2021-06-15 15:59:11 +01:00
3.38 Change to use @tryghost/logging 2021-06-15 15:59:11 +01:00
3.39 Change to use @tryghost/logging 2021-06-15 15:59:11 +01:00
3.40 Change to use @tryghost/logging 2021-06-15 15:59:11 +01:00
3.41 Change to use @tryghost/logging 2021-06-15 15:59:11 +01:00
4.0 🐛 Fixed potential for partial content re-generation in 4.0 migrations (#13120) 2021-07-06 10:15:32 +01:00
4.1 Change to use @tryghost/logging 2021-06-15 15:59:11 +01:00
4.2 Change to use @tryghost/logging 2021-06-15 15:59:11 +01:00
4.3 Change to use @tryghost/logging 2021-06-15 15:59:11 +01:00
4.4 Moved settings/cache to shared/settings-cache 2021-06-30 15:49:10 +01:00
4.5 Change to use @tryghost/logging 2021-06-15 15:59:11 +01:00
4.6 Change to use @tryghost/logging 2021-06-15 15:59:11 +01:00
4.7 Change to use @tryghost/logging 2021-06-15 15:59:11 +01:00
4.8 Moved the "Reset all passwords" permission migration to Ghost 4.9 2021-06-23 17:08:44 +02:00
4.9 Migrated members_status_events for comped members 2021-07-06 12:00:03 +01:00