0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-11 02:12:21 -05:00
ghost/core/server/data/migrations
Rishabh Garg 5da4ae90b2
Added cascade delete for stripe products and prices (#12891)
refs https://github.com/TryGhost/Team/issues/586

If a product inside Ghost is deleted, we want to cascade delete all associated Stripe products and prices as they always need to refer back to a ghost product and will hang without any reason otherwise. This change adds cascade delete for products -> stripe_products -> stripe_prices to avoid broken states
2021-04-20 15:24:52 +05:30
..
hooks Removed settings populateDefaults pre-migration 2021-02-10 10:34:08 +13:00
init
versions Added cascade delete for stripe products and prices (#12891) 2021-04-20 15:24:52 +05:30
utils.js Updated addTable util to take optional tableSpec 2021-02-05 16:02:08 +00:00