From 6fadde22f3b185599531c8242dc349c8aa26f7d1 Mon Sep 17 00:00:00 2001 From: ko_oler <kooler89@gmail.com> Date: Wed, 31 May 2023 13:35:45 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=D0=BE=20=D0=BF=D0=BE=D0=BB=D0=B5=20DBVersion=20=D0=B2=20?= =?UTF-8?q?collection.go=20=D0=B8=20=D0=BA=D0=BE=D0=BD=D1=81=D1=82=D0=B0?= =?UTF-8?q?=D0=BD=D1=82=D0=B0=20DBVersion=20=D0=B2=20content.go?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pkg/collections/collection.go | 1 + pkg/content/content.go | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/pkg/collections/collection.go b/pkg/collections/collection.go index 39b082ef..dfe5d66e 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 22acaaa7..9d318adc 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 -- GitLab