Ghost/core/server/data/migrations/versions/4.3
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
..
01-add-products-table.js Added products and members_products tables (#12844) 2021-04-08 14:15:30 +01:00
02-add-members-products-table.js Added products and members_products tables (#12844) 2021-04-08 14:15:30 +01:00
03-add-default-product.js Added products and members_products tables (#12844) 2021-04-08 14:15:30 +01:00
04-attach-members-to-product.js Added products and members_products tables (#12844) 2021-04-08 14:15:30 +01:00
05-add-stripe-products-table.js Added stripe_products and stripe_prices tables (#12858) 2021-04-08 20:41:00 +05:30
06-add-stripe-prices-table.js Updated stripe prices table schema (#12863) 2021-04-12 19:18:19 +05:30
07-add-products-permissions.js Added permissions for the Products resource (#12875) 2021-04-15 14:34:45 +01:00
08-migrate-members-signup-setting.js Migrated members_allow_free_signup setting to members_signup_access (#12886) 2021-04-19 16:36:30 +01:00