Skip to content
Snippets Groups Projects
Commit 286034c6 authored by ko_oler's avatar ko_oler
Browse files

исправлена логика функции InstallCollection

parent 04871ea2
No related branches found
No related tags found
No related merge requests found
......@@ -146,10 +146,12 @@ func (s *Setup) InstallCollection(ctx context.Context, c CollectionConfig) (setS
}
} else {
var upd bool
err = s.checkSchemaMetadata(collection, exist)
if err != nil {
return false, err
if c.metadata != nil {
collection.Schema.Metadata = c.metadata
err = s.checkSchemaMetadata(collection, exist)
if err != nil {
return false, err
}
}
collection, upd, setSchema = c.UpdateFn(s, exist, c.collection)
......
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