From a6df18cca9cc3e755f6290aa171fb58c596c7853 Mon Sep 17 00:00:00 2001 From: Michael Barrett Date: Wed, 25 Mar 2026 16:28:13 +0000 Subject: [PATCH] Added `gift` to member status ref https://linear.app/ghost/issue/BER-3472 Added `gift` status to member status enum so that the system can track and distinguish members with a gift subscription --- ghost/core/core/server/data/schema/schema.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ghost/core/core/server/data/schema/schema.js b/ghost/core/core/server/data/schema/schema.js index 0811b2e28b8..b840b573e08 100644 --- a/ghost/core/core/server/data/schema/schema.js +++ b/ghost/core/core/server/data/schema/schema.js @@ -421,7 +421,7 @@ module.exports = { email: {type: 'string', maxlength: 191, nullable: false, unique: true, validations: {isEmail: true}}, status: { type: 'string', maxlength: 50, nullable: false, defaultTo: 'free', validations: { - isIn: [['free', 'paid', 'comped']] + isIn: [['free', 'paid', 'comped', 'gift']] } }, name: {type: 'string', maxlength: 191, nullable: true}, @@ -585,12 +585,12 @@ module.exports = { member_id: {type: 'string', maxlength: 24, nullable: false, references: 'members.id', cascadeDelete: true}, from_status: { type: 'string', maxlength: 50, nullable: true, validations: { - isIn: [['free', 'paid', 'comped']] + isIn: [['free', 'paid', 'comped', 'gift']] } }, to_status: { type: 'string', maxlength: 50, nullable: true, validations: { - isIn: [['free', 'paid', 'comped']] + isIn: [['free', 'paid', 'comped', 'gift']] } }, created_at: {type: 'dateTime', nullable: false}