0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-25 02:31:59 -05:00
ghost/core/server/data
Fabien 'egg' O'Carroll 4e326123d3
Updated Offers related tables (#13609)
no-issue

* Removed NOT_NULL constraint from stripe_coupon_id

When handling disconnecting from Stripe - we remove all Stripe data from
our database to ensure we do not have bad/invalid data stored. Removing
this constraint will allow us to set the value to NULL.

* Added created_at column to offer_redemptions

Offer Redemptions are not just a joining table, but an event. A created_at
date allows them to be ordered

Because this is in alpha it is simpler to just drop the tables and
re-add them, due to offer_redemptions depending on offers, we also drop
this table and re-add it.
2021-10-20 14:22:37 +02:00
..
db Swapped to American English spellings 2021-09-23 18:36:38 +02:00
exporter Added offer_redemptions table to database 2021-10-13 17:37:39 +02:00
importer Fixed linting error from bad merge 2021-10-08 15:49:27 +01:00
migrations Updated Offers related tables (#13609) 2021-10-20 14:22:37 +02:00
schema Updated Offers related tables (#13609) 2021-10-20 14:22:37 +02:00