Skip to content

Commit

Permalink
satellite/satellitedb/migrate: fix migration of storjscan primary key
Browse files Browse the repository at this point in the history
Change-Id: Ifc27f01267954525391d2a2dea1d9f6a8802d4b2
  • Loading branch information
dlamarmorgan committed Mar 14, 2024
1 parent 9f32133 commit d6adf9b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion satellite/satellitedb/migrate.go
Expand Up @@ -2652,7 +2652,8 @@ func (db *satelliteDB) ProductionMigration() *migrate.Migration {
Description: "update storjscan payments table to use chain_id in primary key",
Version: 261,
Action: migrate.SQL{
`ALTER TABLE storjscan_payments DROP CONSTRAINT storjscan_payments_pkey;`,
`ALTER TABLE storjscan_payments DROP CONSTRAINT IF EXISTS "primary";`,
`ALTER TABLE storjscan_payments DROP CONSTRAINT IF EXISTS storjscan_payments_pkey;`,
`ALTER TABLE storjscan_payments ADD CONSTRAINT storjscan_payments_pkey PRIMARY KEY ( chain_id, block_hash, log_index );`,
},
},
Expand Down

0 comments on commit d6adf9b

Please sign in to comment.