storj/satellite/satellitedb
Bill Thorp e99e675fb1 satellite/satellitedb: use time zones with all timestamps
The migration was broken into one migration per table to reduce table locking and reduce the
chances of failure due to SQL timeouts.

Of the 14 fields that lacked time zones, only the 3 named 'interval_start` seemed to have non-UTC data in them.
These fields are fixed in the migration by removing the +00 and adding  AT TIME ZONE current_setting('TIMEZONE')
Field with good data are migrated by adding AT TIME ZONE 'UTC'

Note that postgres's timezone() is different than cockroach's timezone() so AT TIME ZONE is used.

https://storjlabs.atlassian.net/browse/SM-104

Change-Id: I410f2f1d7c11b143f17844347f37e6f4b1e70fce
2020-03-05 21:11:25 +00:00
..
dbx satellite/satellitedb: use time zones with all timestamps 2020-03-05 21:11:25 +00:00
pbold common: separate repository 2019-12-27 14:11:15 +02:00
satellitedbtest private/testplanet: flatten migration for running tests 2020-01-22 15:09:11 +00:00
testdata satellite/satellitedb: use time zones with all timestamps 2020-03-05 21:11:25 +00:00
apikeys.go satellite/satellitedb: fixes to row handling 2020-01-16 17:07:26 +02:00
attribution_test.go satellite/satellitedb/satellitedbtest: pass ctx as an argument 2020-01-20 16:35:42 +02:00
attribution.go satellite/satellitedb: add missing err check 2020-01-19 19:24:12 +00:00
buckets.go satelite/metainfo: return NotFound on delete non existing bucket 2020-02-18 09:05:30 +00:00
coinpaymentstxs.go satellite/payments: fail when trying to consume consumed transactions 2020-02-13 19:52:55 +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 satellite/satellitedb/dbx: name the package dbx 2020-01-15 15:16:39 -07:00
coupons.go satellite/satellitedb: better coupons query 2020-01-20 15:05:10 +02:00
credits.go satellite/payments/stripecoinpayments: credits added to invoice calculations 2020-02-24 16:48:27 +00:00
customers.go satellite/payments: fix promotional coupons 2020-01-29 16:40:43 +02:00
database.go satellite/satellitedb: reported_serials table for processing orders 2020-01-15 19:21:21 -07:00
downtime.go satellite/satellitedb/dbx: name the package dbx 2020-01-15 15:16:39 -07:00
gracefulexit.go satellite/satellitedb: gracefulexit, add missing Errs check 2020-01-19 15:24:12 +00:00
invoiceprojectrecords.go satellite/payments/stripecoinpayments: credits added to invoice calculations 2020-02-24 16:48:27 +00:00
irreparabledb.go satellite/satellitedb/dbx: name the package dbx 2020-01-15 15:16:39 -07:00
migrate_test.go satellite/satellitedb: use time zones with all timestamps 2020-03-05 21:11:25 +00:00
migrate.go satellite/satellitedb: use time zones with all timestamps 2020-03-05 21:11:25 +00:00
offers.go satellite: use tagsql 2020-01-19 14:39:16 +02:00
orders.go satellite/satellitedb: fix err and close order 2020-03-04 09:05:22 +00:00
overlaycache.go removes bandwidth limiting 2020-03-04 14:04:00 +00:00
peeridentities.go satellite: use tagsql 2020-01-19 14:39:16 +02:00
projectaccounting.go satellite/satellitedb: don't include GET_AUDIT and GET_REPAIR with chargeable BW 2020-02-07 12:02:44 +00:00
projectmembers_test.go web/satellite: project members sorting fixed (#3231) 2019-10-15 15:24:53 +03:00
projectmembers.go satellite/satellitedb: fixes to row handling 2020-01-16 17:07:26 +02:00
projects_test.go satellite/satellitedb/dbx: name the package dbx 2020-01-15 15:16:39 -07:00
projects.go satellite/payments: fix projects list pagination 2020-02-21 19:37:11 +02:00
regtokens.go satellite/satellitedb/dbx: name the package dbx 2020-01-15 15:16:39 -07:00
repairqueue.go satellite/satellitedb: use time zones with all timestamps 2020-03-05 21:11:25 +00:00
resetpasstokens.go satellite/satellitedb/dbx: name the package dbx 2020-01-15 15:16:39 -07:00
storagenodeaccounting.go satellite/satellitedb: use arrays and batch inserts for SaveTallies query 2020-01-27 16:54:20 -05:00
stripecoinpaymentsdb.go satellite/payments : deposit bonuses (credits) added 2020-02-11 11:11:42 +00:00
usercredits.go satellite/satellitedb: fixes to row handling 2020-01-16 17:07:26 +02:00
users_test.go satellite/satellitedb/dbx: name the package dbx 2020-01-15 15:16:39 -07:00
users.go satellite/satellitedb/dbx: name the package dbx 2020-01-15 15:16:39 -07:00
utils_test.go common: separate repository 2019-12-27 14:11:15 +02:00
utils.go common: separate repository 2019-12-27 14:11:15 +02:00