0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-27 22:49:56 -05:00
ghost/core/server/data/migrations/versions
Kevin Ansfield fff6a04c54
Migrated members_allow_free_signup setting to members_signup_access (#12886)
refs https://github.com/TryGhost/Team/issues/579

Currently the members signup setting is explicitly yes/no to allowing free members signup, with the implication that when set to "no" members is still active but members have to be created via Stripe or the admin API.

This change renames the setting and changes its type to allow more than a binary option.

- migration to create/update the new setting based on the old value
  - free signup = "all", no free signup = "invite"; matches the current UI for this setting
- rename setting everywhere it's used/tested against
- modify `getAllowSelfSignup()` used to configure members packages to only return `true` when the new setting is set to `'all'` to match behaviour to the older setting
- update importer to rename the setting when importing from an older Ghost version
2021-04-19 16:36:30 +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
1.19
1.20
1.21
1.22
1.25
2.0 Fixed mobiledoc errors when upgrading from v1/v2 to v4 (#12741) 2021-03-09 10:51:44 +00:00
2.2
2.3 Refactored 'add column' migrations to use helper 2020-11-25 13:56:10 +00:00
2.6
2.8
2.13
2.14
2.15 Refactored 'add column' migrations to use helper 2020-11-25 13:56:10 +00:00
2.16
2.17 Refactored 'add column' migrations to use helper 2020-11-25 13:56:10 +00:00
2.18
2.21
2.22
2.27
2.28 Fixed typo in migration to add backupContent permission (#12777) 2021-03-18 14:52:12 +00:00
2.29
2.31
2.32
2.33
2.34
2.35
2.37
3.0 Fixed mobiledoc errors when upgrading from v1/v2 to v4 (#12741) 2021-03-09 10:51:44 +00:00
3.1
3.2
3.6
3.7
3.8
3.9
3.11
3.12
3.18
3.19
3.22
3.23
3.24
3.25
3.26
3.29
3.30
3.32
3.33
3.34
3.35
3.36
3.37
3.38
3.39 Added migrations for email analytics (#12387) 2020-11-25 17:48:24 +00:00
3.40 Added members.email_{count,opened_count} column migrations (#12470) 2020-12-09 12:21:56 +00:00
3.41 Added FirstPromoter Integration (#12540) 2021-01-15 19:05:15 +05:30
4.0 Added default value to accent_color setting (#12743) 2021-03-09 16:15:10 +00:00
4.1 🐛 Fixed unable to delete member (#12784) 2021-03-18 22:20:58 +05:30
4.2 Added migration to fix incorrect mrr events (#12837) 2021-04-06 21:14:54 +05:30
4.3 Migrated members_allow_free_signup setting to members_signup_access (#12886) 2021-04-19 16:36:30 +01:00