0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-25 02:31:59 -05:00
ghost/test/e2e-api
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
..
admin Added uuid to newsletter schema (#14600) 2022-04-27 19:20:25 +05:30
content Updated tests to use DatabaseInfo 2022-03-17 17:33:11 +00:00
members Updated members API to return subscriptions' offers from the offer_id (#14515) 2022-04-21 12:06:06 +02:00
shared Hooked up api version compatibility middleware 2022-04-22 16:31:56 +08:00