0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00
ghost/core/server/data/schema
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
..
clients Switched to mysql2 library 2022-03-03 09:59:37 +01:00
default-settings Added version_notifications key to settings table 2022-04-21 20:34:19 +08:00
fixtures Added show_header_name column to newsletters table 2022-04-26 12:31:34 +01:00
commands.js Fixed created_at newsletter migration (#14568) 2022-04-26 12:31:34 +01:00
index.js Moved checks into frontend data service 2022-04-05 15:23:00 +01:00
schema.js Added uuid to newsletter schema (#14600) 2022-04-27 19:20:25 +05:30
validator.js