0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-17 23:44:39 -05:00
ghost/core/server/data/migrations
Simon Backx 366a7be36d 🐛 Fixed newsletters' header_image saved as absolute url (#14690)
refs https://github.com/TryGhost/Team/issues/1579

- When writing to the database, the header_image is tranformed to the transformReady path
- When reading from the database, the transformReady path is transformed to an absolute path
- Includes a test when adding a newsletter

Migration:
- Updates all newsletter who have a header_image to make sure it is saved in transform ready format
- Down operation is required to work with the old model logic and transforms it back to an absolute format
2022-05-05 09:44:03 +01:00
..
hooks
init Removed unnecessary checks during initial DB init 2022-02-21 08:44:40 +01:00
versions 🐛 Fixed newsletters' header_image saved as absolute url (#14690) 2022-05-05 09:44:03 +01:00
utils.js Dropped nullable from members_subscribe_events.newsletter_id (#14656) 2022-05-03 16:30:07 +02:00