storj/satellite/satellitedb/dbx
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
..
templates satellite/dbx: standardize on assignment 2020-12-01 16:10:18 +00:00
cockroach.go satellite/dbx: add retries for QueryRowContext-based operations 2020-11-29 18:09:46 -07:00
gen.go satellite/dbx: only retry with cockroach 2020-11-29 18:10:07 -07:00
gen.sh satellite/satellitedb: add lint ignore rule to support staticcheck 2020.2 2020-12-14 21:16:31 +00:00
satellitedb.dbx satellite/satellitedb: set default 0 on uptime columns 2021-01-12 17:44:37 +00:00
satellitedb.dbx.go satellite/satellitedb: set default 0 on uptime columns 2021-01-12 17:44:37 +00:00
satellitedb.dbx.pgx.sql satellite/satellitedb: set default 0 on uptime columns 2021-01-12 17:44:37 +00:00
satellitedb.dbx.pgxcockroach.sql satellite/satellitedb: set default 0 on uptime columns 2021-01-12 17:44:37 +00:00