Skip to content
Snippets Groups Projects
Commit 0f3d7000 authored by ko_oler's avatar ko_oler
Browse files

правки по ПР

parent 6cd907e5
No related branches found
No related tags found
No related merge requests found
......@@ -108,7 +108,7 @@ func DefaultUpdateCollectionStrategy() CollectionsOption {
update = update && *exist.View == *collection.View
}
setSchema = _alwaysSetSchema || !collection.IsView() && !reflect.DeepEqual(exist.Schema, collection.Schema)
setSchema = !collection.IsView() && (_alwaysSetSchema || !reflect.DeepEqual(exist.Schema, collection.Schema))
return collection, update, setSchema, nil
}
......@@ -185,8 +185,7 @@ func (s *Setup) InstallCollection(ctx context.Context, c CollectionConfig) (setS
}
}
// todo убрать !collection.IsView() после удаления константы _alwaysSetSchema
if setSchema && !collection.IsView() {
if setSchema {
err = s.content.Collections.SetSchema(ctx, collection.SpaceID, collection.EnvID, collection.ID, collection.Schema)
if err != nil {
return false, err
......
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