storj/satellite/satellitedb
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
..
dbx satellite/payments: Convert coupon duration to be nullable 2021-04-01 16:28:23 +02:00
satellitedbtest satellitedb/satellitedbtest: creating a database shouldn't auto-migrate 2021-02-11 14:21:49 +02:00
testdata satellite/payments: Convert coupon duration to be nullable 2021-04-01 16:28:23 +02:00
apikeys.go all: fix linter complaints 2020-10-13 15:59:01 +03:00
attribution.go all: fix dots 2020-07-16 14:58:28 +00:00
audithistory.go satellite/{overlay, satellitedb}: Refactor audit history 2020-12-29 18:50:22 +00:00
bucketsdb.go Merge remote-tracking branch 'origin/main' into multipart-upload 2021-02-23 12:31:31 +01:00
coinpaymentstxs.go satellite/satellitedb: Coinpayments repeat insert bug fix 2020-07-20 20:21:35 +00:00
compensation.go satellite/compensation: smaller txns for RecordPeriod 2021-03-02 20:14:25 +00:00
consoledb_test.go satellite/satellitedb/satellitedbtest: pass ctx as an argument 2020-01-20 16:35:42 +02:00
consoledb.go satellite: remove referral program related code 2021-02-08 13:52:50 +00:00
containment.go satellite/audits: migrate to metabase 2020-12-17 14:38:48 +02:00
coupons.go satellite/payments: Convert coupon duration to be nullable 2021-04-01 16:28:23 +02:00
customers.go all: replace == comparison with errors.Is 2020-07-14 15:50:25 +00:00
database.go satellite/satellitedb: faster test database setup 2021-02-22 21:13:00 +02:00
gracefulexit.go satellite/gracefulexit: extend GE data cleanup to include exit_progress 2021-03-01 15:52:43 +00:00
invoiceprojectrecords.go satellite/payments: delete credits and credits_spendings db tables 2020-07-30 12:19:57 +03:00
irreparabledb.go satellite/repair/checker: adjust irreparable part of repair checker 2020-12-17 14:11:22 +00:00
migrate_gen.go satellite/satellitedb: clearer testdata version parsing 2021-02-23 10:22:19 +02:00
migrate_test.go satellite/satellitedb: drop columns uptime_reputation_alpha and uptime_reputation_beta 2021-03-22 14:33:17 -04:00
migrate.go satellite/payments: Convert coupon duration to be nullable 2021-04-01 16:28:23 +02:00
migratez.go satellite/payments: Convert coupon duration to be nullable 2021-04-01 16:28:23 +02:00
nodeapiversion.go all: use jackc/pgx in place of lib/pq 2020-07-13 15:54:41 +00:00
nodeselection.go satellite/satellitedb: filter offline suspended nodes from selection 2021-03-27 23:36:46 +00:00
orders.go satellite/orders: Delete unused methods & DB tables 2021-02-01 18:01:29 +00:00
overlaycache.go compensation: always generate invoices for every node 2021-03-29 14:15:45 +00:00
payouts.go satellite/compensation: smaller txns for RecordPeriod 2021-03-02 20:14:25 +00:00
peeridentities.go all: fix dots 2020-07-16 14:58:28 +00:00
projectaccounting.go compensation: always generate invoices for every node 2021-03-29 14:15:45 +00:00
projectmembers_test.go web/satellite: project members sorting fixed (#3231) 2019-10-15 15:24:53 +03:00
projectmembers.go all: fix linter complaints 2020-10-13 15:59:01 +03:00
projects_test.go satellite/satellitedb/dbx: name the package dbx 2020-01-15 15:16:39 -07:00
projects.go satellite/console: change default project and usage limits 2021-03-24 14:24:27 +00:00
regtokens.go all: fix dots 2020-07-16 14:58:28 +00:00
repairqueue.go satellite/satellitedb: drop num_healthy_pieces column from injuredsegments 2020-12-17 20:17:08 +00:00
resetpasstokens.go all: fix dots 2020-07-16 14:58:28 +00:00
revocation.go all: fix dots 2020-07-16 14:58:28 +00:00
storagenodeaccounting.go compensation: always generate invoices for every node 2021-03-29 14:15:45 +00:00
stripecoinpaymentsdb.go satellite/payments: delete credits and credits_spendings db tables 2020-07-30 12:19:57 +03:00
users_test.go satellite/satellitedb/dbx: name the package dbx 2020-01-15 15:16:39 -07:00
users.go satellite/satellitedb: add employee size column to users 2021-02-12 09:15:15 -05:00