Ghost/core/server/data
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
..
db 💡 Enabled foreign key checks on sqlite3 2021-03-02 11:13:19 +01:00
exporter Added settings keys to store OAuth related data (#12879) 2021-04-16 10:02:21 +02:00
importer Migrated members_allow_free_signup setting to members_signup_access (#12886) 2021-04-19 16:36:30 +01:00
migrations Migrated members_allow_free_signup setting to members_signup_access (#12886) 2021-04-19 16:36:30 +01:00
schema Migrated members_allow_free_signup setting to members_signup_access (#12886) 2021-04-19 16:36:30 +01:00
validation Improved settings validation (#12048) 2020-07-15 17:11:27 +02:00