0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-03-25 02:31:59 -05:00
ghost/core/server/data/schema
Fabien 'egg' O'Carroll 4e326123d3
Updated Offers related tables ()
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
..
clients Fixed "no-shadow" linting error in server/data modules () 2020-10-20 11:56:46 +13:00
fixtures Fixed typo "in" default About page. () 2021-10-04 12:18:15 +01:00
checks.js Update Test & linting packages (major) () 2019-07-05 13:40:43 +02:00
commands.js Replaced i18n.t w/ tpl in core/server/data () 2021-10-08 15:31:17 +01:00
default-settings.json Added email disabling flag to settings records 2021-07-29 20:30:30 +12:00
index.js Moved schema validator into the schema module 2021-06-15 11:54:34 +01:00
schema.js Updated Offers related tables () 2021-10-20 14:22:37 +02:00
validator.js Switch to @trghost/validator, remove validator 2021-06-16 08:11:22 +01:00