Added automated_email_recipients database table#25902
Conversation
|
It looks like this PR contains a migration 👀 General requirements
Schema changes
Data changes
|
WalkthroughThis pull request introduces a new database table Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes 🚥 Pre-merge checks | ✅ 3✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing touches
Comment |
automated_email_recipients database table
...er/data/migrations/versions/6.14/2026-01-19-23-55-51-add-automated-email-recipients-table.js
Outdated
Show resolved
Hide resolved
...er/data/migrations/versions/6.14/2026-01-19-23-55-51-add-automated-email-recipients-table.js
Outdated
Show resolved
Hide resolved
troyciesco
left a comment
There was a problem hiding this comment.
marking as request changes bc i think we want to do the two things i noted but lmk if i'm wrong!
69d7c5b to
c8baaa0
Compare
ref https://linear.app/ghost/issue/NY-936 This table stores records of automated emails sent to members, starting with welcome emails. The member_id has no foreign key constraint, following the email_recipients pattern, to preserve audit history when members are deleted. Denormalized member fields capture point-in-time data at send time.
Added automated_email_recipients to expected tables list
c8baaa0 to
4367d1a
Compare
ref https://linear.app/ghost/issue/NY-936
Summary
automated_email_recipientstable to track automated emails sent to membersemail_recipientspattern: no FK onmember_idto preserve audit history when members are deleted