mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
Added settings for members 'free' price
refs https://github.com/TryGhost/Team/issues/637 The "free" price - when Members signup without using Stripe, should have a name and description, so that it can be displayed in Portal in a similar way to paid price's. As there is only ever one, and it is not a fully fledged price, a setting makes more sense than a dedicated db table.
This commit is contained in:
parent
a138586c83
commit
b35f060bef
5 changed files with 15 additions and 1 deletions
|
@ -304,6 +304,14 @@
|
|||
"stripe_connect_account_id": {
|
||||
"defaultValue": null,
|
||||
"type": "string"
|
||||
},
|
||||
"members_free_price_name": {
|
||||
"defaultValue": "Free",
|
||||
"type": "string"
|
||||
},
|
||||
"members_free_price_description": {
|
||||
"defaultValue": "",
|
||||
"type": "string"
|
||||
}
|
||||
},
|
||||
"portal": {
|
||||
|
|
|
@ -43,6 +43,8 @@ const defaultSettingsKeyTypes = [
|
|||
{key: 'members_reply_address', type: 'members'},
|
||||
{key: 'members_paid_signup_redirect', type: 'members'},
|
||||
{key: 'members_free_signup_redirect', type: 'members'},
|
||||
{key: 'members_free_price_name', type: 'members'},
|
||||
{key: 'members_free_price_description', type: 'members'},
|
||||
{key: 'stripe_product_name', type: 'members'},
|
||||
{key: 'stripe_plans', type: 'members'},
|
||||
{key: 'stripe_secret_key', type: 'members'},
|
||||
|
|
|
@ -38,6 +38,8 @@ const defaultSettingsKeyTypes = [
|
|||
{key: 'members_reply_address', type: 'members'},
|
||||
{key: 'members_paid_signup_redirect', type: 'members'},
|
||||
{key: 'members_free_signup_redirect', type: 'members'},
|
||||
{key: 'members_free_price_name', type: 'members'},
|
||||
{key: 'members_free_price_description', type: 'members'},
|
||||
{key: 'stripe_product_name', type: 'members'},
|
||||
{key: 'stripe_plans', type: 'members'},
|
||||
{key: 'stripe_secret_key', type: 'members'},
|
||||
|
|
|
@ -41,6 +41,8 @@ const defaultSettingsKeyTypes = [
|
|||
{key: 'members_reply_address', type: 'members'},
|
||||
{key: 'members_paid_signup_redirect', type: 'members'},
|
||||
{key: 'members_free_signup_redirect', type: 'members'},
|
||||
{key: 'members_free_price_name', type: 'members'},
|
||||
{key: 'members_free_price_description', type: 'members'},
|
||||
{key: 'stripe_product_name', type: 'members'},
|
||||
{key: 'stripe_plans', type: 'members'},
|
||||
{key: 'stripe_secret_key', type: 'members'},
|
||||
|
|
|
@ -34,7 +34,7 @@ describe('DB version integrity', function () {
|
|||
// Only these variables should need updating
|
||||
const currentSchemaHash = '7886f066821a240b85c6b61ba2dcff65';
|
||||
const currentFixturesHash = '8671672598d2a62e53418c4b91aa79a3';
|
||||
const currentSettingsHash = '5529b6fd5ee65b65bb78954fd721b248';
|
||||
const currentSettingsHash = '1f41d1a0a21500bcaf2829288dff5a67';
|
||||
const currentRoutesHash = '3d180d52c663d173a6be791ef411ed01';
|
||||
|
||||
// If this test is failing, then it is likely a change has been made that requires a DB version bump,
|
||||
|
|
Loading…
Reference in a new issue