sql: don't alter tables for snapshot objects (#52127)
This commit is contained in:
parent
e0f4755d3c
commit
5b54f6ed6a
|
@ -460,6 +460,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