0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/test/unit/server
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
..
adapters Reworked LocalFileStore methods to use async syntax 2021-10-20 10:29:46 +04:00
data Updated Offers related tables (#13609) 2021-10-20 14:22:37 +02:00
lib Removed remaining usage of i18n & translation file 2021-10-15 11:39:07 +01:00
models Moved URL service to backend 2021-10-19 07:29:09 +13:00
services Moved URL service to backend 2021-10-19 07:29:09 +13:00
web Moved server unit tests into the server folder 2021-10-06 12:01:09 +01:00
notify.test.js Renamed tests to .test.js & updated commands 2021-07-06 20:45:01 +01:00
overrides.test.js Set global Luxon timezone override to UTC 2021-10-20 09:19:29 +02:00