storj/satellite/payments
Moby von Briesen c334fd090e satellite/payments: Convert coupon duration to be nullable
* Add a nullable billing_periods column in the coupons table
* Add nullable billing_periods column to the currently unused
coupon_codes table
* Drop the duration column from the coupon_codes table
* Replace duration config type so that the default promotional coupon
can be configured to never expire

Zero downtime migration plan:
* Add billing_periods column to coupons and coupon_codes tables (this change)
* After one release, remove all references to the old duration column,
replacing with references to billing_periods. At this point, we can also
change the defult promotional coupon to never expire and migrate over
values from the old duration column.
* After another release, drop the duration column.

Change-Id: I374e8dc9fab9f81b4a5bc681771955662d4c007a
2021-04-01 16:28:23 +02:00
..
coinpayments satellite/satellitedb: move tests to their domains 2021-02-19 17:29:15 +02:00
paymentsconfig satellite/payments: Convert coupon duration to be nullable 2021-04-01 16:28:23 +02:00
stripecoinpayments satellite/payments: Convert coupon duration to be nullable 2021-04-01 16:28:23 +02:00
account.go satellite/{console/payments/satellitedb}: add validation for deletion of account and project 2020-10-13 07:55:26 +00:00
balance.go satellite: account balance divided into Free Credits and Coins 2020-05-18 14:25:26 +00:00
charges.go satellite/console: add credit card charges to billing history 2020-01-03 17:34:59 +02:00
coupons_test.go satellite/payments: Convert coupon duration to be nullable 2021-04-01 16:28:23 +02:00
coupons.go satellite/payments: Convert coupon duration to be nullable 2021-04-01 16:28:23 +02:00
creditcards.go satellite/{payments,admin}: add deletion of user creditcards on account deletion 2020-08-27 10:18:19 +00:00
credits.go all: switch to storj.io/common/uuid 2020-03-31 19:16:41 +03:00
invoices.go satellite/admin: add user deletion 2020-07-14 11:37:00 +00:00
projectcharges.go all: switch to storj.io/common/uuid 2020-03-31 19:16:41 +03:00
tokens.go satellite/payments: add deposit bonus to stripe balance 2020-06-01 17:41:10 +00:00