0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/server/models
Rishabh Garg 756f86dbdc
Added uuid to newsletter schema (#14600)
refs https://github.com/TryGhost/Team/issues/1561

With multiple newsletters, unsubscribe links will also need to have a unique reference to the newsletter that the email is for, so that we can unsubscribe members from the particular newsletter automatically when they click on the link.
As our existing pattern for members is to use UUID as the external unique reference, this change adds UUID to newsletter schema and populates the existing newsletters with a UUID value.

- adds new `uuid` column to newsletter schema
- updates newsletter model to add default uuid
- updates default newsletter migration to add `uuid`
- drops nullable on `uuid` column later in migrations once we have populated existing newsletters
2022-04-27 19:20:25 +05:30
..
base Added support for 'FOR UPDATE' lock (#14433) 2022-04-08 12:52:33 +01:00
relations Switch to @tryghost/errors from ignition errors package (#13807) 2021-12-01 10:22:01 +00:00
action.js Fixed dependency on the order of models 2021-10-21 16:57:36 +01:00
api-key.js
author.js
benefit.js
custom-theme-setting.js
email-batch.js
email-recipient.js
email.js Filtered member email recipients based on the newsletter subscriptions (#14489) 2022-04-26 12:31:34 +01:00
index.js Refactored model init to be implicit 2021-10-21 17:01:26 +01:00
integration.js
invite.js
label.js Replaced white/black list terminology 2022-04-19 11:19:59 +01:00
member-analytic-event.js
member-cancel-event.js Added the MemberCancelEvent model 2022-03-11 21:50:06 +01:00
member-email-change-event.js Added linting for use of @tryghost/errors 2021-12-01 11:22:21 +00:00
member-login-event.js Added linting for use of @tryghost/errors 2021-12-01 11:22:21 +00:00
member-paid-subscription-event.js Added linting for use of @tryghost/errors 2021-12-01 11:22:21 +00:00
member-payment-event.js Added linting for use of @tryghost/errors 2021-12-01 11:22:21 +00:00
member-product-event.js Added linting for use of @tryghost/errors 2021-12-01 11:22:21 +00:00
member-status-event.js Added linting for use of @tryghost/errors 2021-12-01 11:22:21 +00:00
member-stripe-customer.js
member-subscribe-event.js Added linting for use of @tryghost/errors 2021-12-01 11:22:21 +00:00
member.js Allow opt-in for existing members when creating a newsletter (#14567) 2022-04-26 12:31:34 +01:00
mobiledoc-revision.js
newsletter.js Added uuid to newsletter schema (#14600) 2022-04-27 19:20:25 +05:30
offer-redemption.js
offer.js
permission.js
post.js Moved to using newsletter design settings in email serializer (#14562) 2022-04-26 12:31:34 +01:00
posts-meta.js
product.js Switched products.visible for products.visibility (#14264) 2022-03-04 11:07:38 +00:00
role.js Replaced white/black list terminology 2022-04-19 11:19:59 +01:00
session.js
settings.js Refactored default settings population to reduce unnecessary DB queries 2022-02-08 10:11:00 +01:00
single-use-token.js Updated SingleUseToken grace period to 10 minutes (#13926) 2022-01-03 17:55:53 +02:00
snippet.js
stripe-customer-subscription.js Added mrr column to subscriptions (#14448) 2022-04-12 11:02:18 +02:00
stripe-price.js
stripe-product.js
tag-public.js
tag.js Replaced white/black list terminology 2022-04-19 11:19:59 +01:00
user.js Replaced white/black list terminology 2022-04-19 11:19:59 +01:00
webhook.js