satellite/metainfo/metabase: add etag column to segments table

We will use it keep track of ETag for object parts.

Change-Id: Ib610397afd44d71a1b5fe4301940de6f36ba39ae
This commit is contained in:
Kaloyan Raev 2021-03-17 13:55:18 +02:00
parent fa083a7f05
commit 36bc17ef5b

View File

@ -299,6 +299,14 @@ func (db *DB) PostgresMigration() *migrate.Migration {
`ALTER TABLE segments ALTER COLUMN created_at SET DEFAULT now()`,
},
},
{
DB: &db.db,
Description: "add etag column to segments table",
Version: 9,
Action: migrate.SQL{
`ALTER TABLE segments ADD COLUMN etag BYTEA default NULL`,
},
},
},
}
}