changeset 9888 | 5b48dcc02be1 |
parent 9636 | e35ae8617c03 |
child 9949 | e0f1c5697221 |
child 10035 | c5bcdece77fb |
--- a/hooks/syncschema.py Thu Jun 12 09:59:55 2014 +0200 +++ b/hooks/syncschema.py Wed Jul 16 17:20:55 2014 +0200 @@ -653,6 +653,9 @@ else: self.critical('constraint %s for rdef %s was missing or already removed', self.oldcstr, rdef) + if cnx.deleted_in_transaction(rdef.eid): + # don't try to alter a table that's going away (or is already gone) + return # then update database: alter the physical schema on size/unique # constraint changes syssource = cnx.repo.system_source