sql: don't alter tables for snapshot objects (#52127)

This commit is contained in:
Frédéric Péters 2021-03-17 10:39:48 +01:00 committed by Thomas NOËL
parent a320d4f25b
commit 68537fdbad
1 changed files with 4 additions and 0 deletions

View File

@ -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