From d91cf5f4de4ea0306cba458e580766bc947b3c2e Mon Sep 17 00:00:00 2001 From: Egon Elbre Date: Fri, 26 Jun 2020 11:41:55 +0300 Subject: [PATCH] satellite/satellitedb: add missing SeparateTx Change-Id: I3ba5a4e0632a1e0e5e77c30e515953eadf05bc45 --- satellite/satellitedb/migrate.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/satellite/satellitedb/migrate.go b/satellite/satellitedb/migrate.go index f841aabae..16ff2eca1 100644 --- a/satellite/satellitedb/migrate.go +++ b/satellite/satellitedb/migrate.go @@ -1118,6 +1118,7 @@ func (db *satelliteDB) PostgresMigration() *migrate.Migration { DB: db.DB, Description: "add period column to the credits_spendings table (step 1)", Version: 109, + SeparateTx: true, Action: migrate.SQL{ `ALTER TABLE credits_spendings ADD COLUMN period timestamp with time zone;`, }, @@ -1135,6 +1136,7 @@ func (db *satelliteDB) PostgresMigration() *migrate.Migration { DB: db.DB, Description: "add period column to the credits_spendings table (step 3)", Version: 111, + SeparateTx: true, Action: migrate.SQL{ `ALTER TABLE credits_spendings ALTER COLUMN period SET NOT NULL;`, },