Skip to content
Snippets Groups Projects
Commit 6fadde22 authored by ko_oler's avatar ko_oler
Browse files

Добавлено поле DBVersion в collection.go и константа DBVersion в content.go

parent 477cddc6
No related branches found
No related tags found
No related merge requests found
......@@ -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
......
......@@ -20,6 +20,10 @@ type Runnable interface {
Stop()
}
const (
DBVersion uint32 = 1
)
type Content struct {
collaborators.Collaborators
collections.Collections
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment