Fix bug in version column if it is renamed

This commit is contained in:
M1ha 2019-01-30 10:03:38 +05:00
parent 7034f165ac
commit 29a251b892

View File

@ -136,7 +136,7 @@ class CollapsingMergeTree(InsertOnlyEngineMixin, infi_engines.CollapsingMergeTre
old_objs_versions = {}
for obj in old_objs:
self.set_obj_sign(obj, -1)
old_objs_versions[obj.id] = obj.version
old_objs_versions[obj.id] = getattr(obj, self.version_col)
for obj in new_objs:
self.set_obj_sign(obj, 1)