Skip to content

[pull] main from TryGhost:main#1139

Merged
pull[bot] merged 1 commit into
code:mainfrom
TryGhost:main
May 14, 2026
Merged

[pull] main from TryGhost:main#1139
pull[bot] merged 1 commit into
code:mainfrom
TryGhost:main

Conversation

@pull
Copy link
Copy Markdown

@pull pull Bot commented May 14, 2026

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

…iption_notifications (#27863)

closes https://linear.app/ghost/issue/BER-3655
closes https://linear.app/ghost/issue/BER-3554

Renames the `users.gift_subscription_purchase_notification` column
(added in v6.28) to `users.gift_subscription_notifications`. In
#27769, we updated the
email-preference toggle for gift subscriptions to enable/disable both
gift **purchases** and gift **redemptions** email notifications.
Therefore, the `_purchase_` segment of the column name is no longer
correct.

### Implementation notes

1. This PR contains both a database migration and related code changes,
which does not satisfy our general requirements for database migrations
(see checklist below). However, we are renaming a database column in
this migration, therefore we don't really have a choice. If we did
commit A) renames column, and commit B) changes code, we’d have a broken
state between commit A and B.

2. On Ghost (Pro), Admin changes are deployed prior to server changes.
This PR contains both Admin and server changes. There will be a point in
time where the Admin changes are deployed, but the related database
migration has not run yet. During that time, toggling the email
preference on gift subscriptions will be broken. We're accepting this
limitation given that gift subscriptions are still behind a feature flag
and the feature has not been enabled yet on any production sites.
@pull pull Bot locked and limited conversation to collaborators May 14, 2026
@pull pull Bot added the ⤵️ pull label May 14, 2026
@pull pull Bot merged commit 9eed023 into code:main May 14, 2026
2 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant