diff --git a/satellite/metainfo/metabase/raw.go b/satellite/metainfo/metabase/raw.go index 4ef125c76..691417ab2 100644 --- a/satellite/metainfo/metabase/raw.go +++ b/satellite/metainfo/metabase/raw.go @@ -44,7 +44,8 @@ type RawSegment struct { StreamID uuid.UUID Position SegmentPosition - CreatedAt *time.Time // TODO: make it non-nilable after we migrate all existing segments to have creation time + CreatedAt *time.Time // TODO: make it non-nilable after we migrate all existing segments to have creation time + RepairedAt *time.Time RootPieceID storj.PieceID EncryptedKeyNonce []byte @@ -163,7 +164,7 @@ func (db *DB) testingGetAllSegments(ctx context.Context) (_ []RawSegment, err er rows, err := db.db.Query(ctx, ` SELECT stream_id, position, - created_at, + created_at, repaired_at, root_piece_id, encrypted_key_nonce, encrypted_key, encrypted_size, plain_offset, plain_size, @@ -184,6 +185,7 @@ func (db *DB) testingGetAllSegments(ctx context.Context) (_ []RawSegment, err er &seg.Position, &seg.CreatedAt, + &seg.RepairedAt, &seg.RootPieceID, &seg.EncryptedKeyNonce,