Skip to content

Commit 9523158

Browse files
committed
Fix dropping of multilinks on schema change
Special case when a previously materialized multilink (one with an existing table) is replaced with a rev_multilink property from another table. In that case the existing multilink tables was not dropped.
1 parent 6905b9a commit 9523158

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roundup/backends/rdbms_common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,7 @@ def update_class(self, spec, old_spec, force=0):
571571
old_has = {}
572572
for name, prop in old_spec[1]:
573573
old_has[name] = 1
574-
if name in spec.properties:
574+
if name in spec.properties and not spec.properties[name].computed:
575575
continue
576576

577577
if prop.find('Multilink to') != -1:

0 commit comments

Comments
 (0)