storj/satellite
dlamarmorgan 2c0a360a14 satellite/satellitedb: migrate partner_id db column to user_agent db column
Value attribution codes were converted into UUIDs and stored in the users, projects, api_keys, bucket_metainfos, and value_attributions tables in the partner_id column. This migration will lookup the appropriate partner name associated with each of these UUIDs, and store the partner name directly in the user_agent column within each table. If an error occurs during the partner ID to partner name conversion, the partner ID value will be migrated to user_agent.

A note on the migration test data, postgres.v182.sql:
With one exception, all preexisting rows in the relevant tables had a NULL partner_ID. Therefore, we needed to insert new rows with partner_ID set under the OLD DATA section in order to test that the migration works. For each affected table, we insert one row with a valid partner ID which has a corresponding partner name, and one row with a partner ID which would return an error during the conversion to the partner name.

Change-Id: Iad977d72df0ce95a0c5ca80a065c4276ec1f2354
2021-11-24 22:43:22 +00:00
..
accounting satellite/{satellitedb, web}: display object count in satellite UI 2021-11-01 18:26:13 +00:00
admin satellite/admin: add endpoints for managing a buckets geofence 2021-11-16 12:42:06 +00:00
analytics web, satellite: allow registering business accounts to ask for contact from sales team 2021-06-02 13:10:38 +00:00
attribution satellite/{satellitedb,attribution,console}: value attribution changes that add userAgent field to buckets table and all tables that have partner_id 2021-10-18 13:56:19 +00:00
audit satellite/audit: fix TestReverify timeouts 2021-11-09 13:16:29 +00:00
buckets satellite/metainfo: propagate geofencing between buckets and stream id 2021-11-24 08:05:05 +00:00
compensation satellite/compensation: add wallet features to invoice csv 2021-02-08 22:13:48 +02:00
console satellite/console, web/satellite: feature flag for new project dashboard 2021-11-17 16:02:47 +02:00
contact private/lrucache: import from common 2021-08-16 10:04:32 +00:00
gc private/testplanet: move Metabase outside Metainfo for satellite 2021-09-09 07:15:51 +00:00
geoip satellite/geoip: update node check-in to associate a country code 2021-11-10 16:44:41 +01:00
gracefulexit satellite/gracefulexit: stop using gracefulexit_transfer_queue 2021-09-14 11:52:34 +00:00
inspector private/testplanet: move Metabase outside Metainfo for satellite 2021-09-09 07:15:51 +00:00
internalpb satellite/metainfo: propagate geofencing between buckets and stream id 2021-11-24 08:05:05 +00:00
mailservice web/satellite,satellite/console: Overhaul password reset 2021-08-12 17:40:53 +00:00
metabase satellite/metabase: add GetProjectSegmentCount method 2021-11-24 13:20:02 +00:00
metainfo satellite/metainfo: Check ctx in download Object & Segment 2021-11-24 12:54:11 +01:00
metrics satellite/metrics: speedup test 2021-09-28 11:39:37 +02:00
nodeapiversion satellite/nodeapiversion: new table for tracking node api usage 2020-07-09 15:02:25 +00:00
nodeselection/uploadselection satellite/nodeselection: add geofencing constraints to the node selection criteria 2021-11-08 17:04:31 +00:00
nodestats satellite/reputation: return default reputation stats when node is not 2021-08-04 19:34:54 +00:00
orders satellites/orders: populate egress_dead in project_bandwidth_daily_rollups 2021-10-06 16:54:49 +00:00
overlay satellite/metainfo: propagate geofencing between buckets and stream id 2021-11-24 08:05:05 +00:00
payments satellite: use segment count for billing 2021-10-27 19:21:50 +00:00
repair satellite/repair: only record audit result if segment can be downloaded 2021-11-17 15:25:43 +00:00
reputation satellite/{reputation/satellitedb}: remove references to contained column in reputations table 2021-10-14 19:59:03 +00:00
revocation satellite/satellitedb: move tests to their domains 2021-02-19 17:29:15 +02:00
rewards satellite/rewards: adding SeaweedFS to partners list (#4230) 2021-10-19 21:30:31 +02:00
satellitedb satellite/satellitedb: migrate partner_id db column to user_agent db column 2021-11-24 22:43:22 +00:00
snopayouts all: fix error naming 2021-04-29 15:38:21 +03:00
admin.go satellite/buckets: add new buckets service 2021-11-16 12:36:17 +02:00
api.go satellite/buckets: add new buckets service 2021-11-16 12:36:17 +02:00
configlock_test.go all: fix linter complaints 2020-10-13 15:59:01 +03:00
core.go satellite/buckets: add new buckets service 2021-11-16 12:36:17 +02:00
gc.go satellite/metabase/segmentloop: don't shutdown satellite on loop error 2021-07-30 06:49:10 +00:00
peer.go satellite/buckets: add new buckets service 2021-11-16 12:36:17 +02:00
repairer.go satellite/buckets: add new buckets service 2021-11-16 12:36:17 +02:00