sql: don't alter tables for snapshot objects (#52127)
This commit is contained in:
parent
a320d4f25b
commit
68537fdbad
|
@ -461,6 +461,10 @@ def do_formdef_tables(formdef, conn=None, cur=None, rebuild_views=False, rebuild
|
|||
# don't touch tables for lightweight objects
|
||||
return []
|
||||
|
||||
if getattr(formdef, 'snapshot_object', None):
|
||||
# don't touch tables for snapshot objects
|
||||
return []
|
||||
|
||||
own_conn = False
|
||||
if not conn:
|
||||
own_conn = True
|
||||
|
|
Loading…
Reference in New Issue