storj/satellite/satellitedb
Cameron Ayer 0184d33e96 satellite/satellitedb: set default 0 on uptime columns
This is the first step in the removal of uptime columns on the
nodes table. These columns are no longer used:

uptime_success_count
total_uptime_count
uptime_reputation_alpha
uptime_reputation_beta

In order to avoid breaking backwards compatibility, we need to
remove all references to these columns before removing the columns
themselves from the database. However, since uptime_success_count
and total_uptime_count are NOT NULLABLE, we can't remove them from
the insert statements in the overlay. So we can't remove the columns
because of the references, and we can't remove the references because
the columns can't be null. What a pickle. To remedy this, we will set a
default on the columns. Then we should be able to remove them from the
insert statements

Change-Id: I75f6c56fb7897835bbf29869f86f39de1d9dd345
2021-01-12 17:44:37 +00:00
..
dbx satellite/satellitedb: set default 0 on uptime columns 2021-01-12 17:44:37 +00:00
satellitedbtest Allow for DB application names per process. (#3983) 2020-12-04 11:24:39 +01:00
testdata satellite/satellitedb: set default 0 on uptime columns 2021-01-12 17:44:37 +00:00
apikeys.go all: fix linter complaints 2020-10-13 15:59:01 +03:00
attribution_test.go all: remove old uuid 2020-04-02 19:30:36 +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
buckets_test.go satellite/satellitedb: add ListAllBuckets method 2020-12-10 14:19:27 +00:00
buckets.go satellite/satellitedb: add ListAllBuckets method 2020-12-10 14:19:27 +00:00
coinpaymentstxs_test.go satellite/satellitedb: Coinpayments repeat insert bug fix 2020-07-20 20:21:35 +00:00
coinpaymentstxs.go satellite/satellitedb: Coinpayments repeat insert bug fix 2020-07-20 20:21:35 +00:00
compensation.go all: fix dots 2020-07-16 14:58:28 +00:00
consoledb_test.go satellite/satellitedb/satellitedbtest: pass ctx as an argument 2020-01-20 16:35:42 +02:00
consoledb.go satellite/payments: fix promotional coupons 2020-01-29 16:40:43 +02:00
containment.go all: fix dots 2020-07-16 14:58:28 +00:00
coupons.go all: fix dots 2020-07-16 14:58:28 +00:00
customers.go all: replace == comparison with errors.Is 2020-07-14 15:50:25 +00:00
database.go satellite/overlay: use AS OF SYSTEM TIME with Cockroach 2020-12-22 21:07:07 +02:00
gracefulexit.go go.mod: update pgx to v4.9.0 2020-09-29 19:03:08 +00:00
invoiceprojectrecords.go satellite/payments: delete credits and credits_spendings db tables 2020-07-30 12:19:57 +03:00
irreparabledb.go satellite/internalpb: add inspectors 2020-10-30 13:28:17 +02:00
migrate_test.go Allow for DB application names per process. (#3983) 2020-12-04 11:24:39 +01:00
migrate.go satellite/satellitedb: set default 0 on uptime columns 2021-01-12 17:44:37 +00:00
nodeapiversion.go all: use jackc/pgx in place of lib/pq 2020-07-13 15:54:41 +00:00
nodeselection.go Revert "satellite/satellitedb: Do not consider nodes with offline_suspended as reputable." 2021-01-04 14:28:37 +00:00
offers.go all: add missing dots 2020-08-11 17:50:01 +03:00
orders.go satellite/dbcleanup: remove expired serial chore 2020-12-18 09:36:28 -08:00
overlaycache_test.go satellite: remove IsUp field from overlay.UpdateRequest 2020-11-02 15:34:17 -05:00
overlaycache.go satellite/{overlay,satellitedb}: remove unused methods for old downtime tracking 2021-01-11 15:21:28 +00:00
payout.go storagenode: heldamount renamed to payouts, renamed some methods and structs to more meaningful names. grouped estimated payout with pathouts 2020-09-16 14:57:35 +00:00
peeridentities.go all: fix dots 2020-07-16 14:58:28 +00:00
projectaccounting.go all: fix defers in loop 2020-11-02 15:06:38 +02: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: make limits be nullable 2020-09-21 19:34:19 +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_test.go satellite: Check macaroon revocation 2020-06-22 13:50:07 -06:00
revocation.go all: fix dots 2020-07-16 14:58:28 +00:00
storagenodeaccounting.go satellite/accounting: Performance improvements to getNodeIds used by GetBandwidthSince (#4009) 2020-12-21 16:37:01 +01:00
stripecoinpaymentsdb.go satellite/payments: delete credits and credits_spendings db tables 2020-07-30 12:19:57 +03:00
usercredits.go all: fix dots 2020-07-16 14:58:28 +00:00
users_test.go satellite/satellitedb/dbx: name the package dbx 2020-01-15 15:16:39 -07:00
users.go all: fix dots 2020-07-16 14:58:28 +00:00