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 { ...@@ -90,6 +90,7 @@ type StateInfo struct {
State State `json:"state" bson:"state"` State State `json:"state" bson:"state"`
Info string `json:"info" bson:"info"` Info string `json:"info" bson:"info"`
StartedAt time.Time `json:"started_at,omitempty" bson:"started_at,omitempty"` StartedAt time.Time `json:"started_at,omitempty" bson:"started_at,omitempty"`
DBVersion uint32 `json:"db_version" bson:"db_version"`
} }
type State int type State int
......
...@@ -20,6 +20,10 @@ type Runnable interface { ...@@ -20,6 +20,10 @@ type Runnable interface {
Stop() Stop()
} }
const (
DBVersion uint32 = 1
)
type Content struct { type Content struct {
collaborators.Collaborators collaborators.Collaborators
collections.Collections 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