Skip to content
Snippets Groups Projects
Commit c5119696 authored by Alena Petraki's avatar Alena Petraki
Browse files

Merge branch 'master' into feature/PRXS-1619-AsyncSyncMethods

parents d680e81d 4d9f1028
No related branches found
No related tags found
No related merge requests found
......@@ -51,7 +51,10 @@ func SkipMigration() CollectionsOption {
func OverwriteCollection() CollectionsOption {
return func(c *CollectionConfig) {
c.UpdateFn = func(s *Setup, old, new *collections.Collection) (*collections.Collection, bool, bool, error) {
return new, true, true, nil
update := new.Name != old.Name || new.IsSingle() != old.IsSingle() || new.IsSystem() != old.IsSystem() ||
new.IsNoData() != old.IsNoData() || new.Hidden != old.Hidden || new.IsView() != old.IsView() || !data.ElementsMatch(old.Tags, new.Tags)
return new, update, !reflect.DeepEqual(old.Schema, new.Schema), nil
}
}
}
......
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