mirror of
https://github.com/carrotquest/django-clickhouse.git
synced 2024-11-15 05:46:41 +03:00
Fix bug in version column if it is renamed
This commit is contained in:
parent
7034f165ac
commit
29a251b892
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue
Block a user