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 e0f4755d3c
commit 5b54f6ed6a
1 changed files with 4 additions and 0 deletions

View File

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