diff --git a/pkg/collections/collection.go b/pkg/collections/collection.go index 39b082ef134030ab39e5e3fdae7a5692cca47d73..dfe5d66ed4a5b96f4f99118a6842488a2bc94735 100644 --- a/pkg/collections/collection.go +++ b/pkg/collections/collection.go @@ -90,6 +90,7 @@ type StateInfo struct { State State `json:"state" bson:"state"` Info string `json:"info" bson:"info"` StartedAt time.Time `json:"started_at,omitempty" bson:"started_at,omitempty"` + DBVersion uint32 `json:"db_version" bson:"db_version"` } type State int diff --git a/pkg/content/content.go b/pkg/content/content.go index 22acaaa7227622781e93b0a9a019acae51e76873..9d318adc80df1eeed21677d4f596fbfbdd4256a0 100644 --- a/pkg/content/content.go +++ b/pkg/content/content.go @@ -20,6 +20,10 @@ type Runnable interface { Stop() } +const ( + DBVersion uint32 = 1 +) + type Content struct { collaborators.Collaborators collections.Collections