hooks/syncschema.py
changeset 9897 fa44db7da2dc
parent 9888 5b48dcc02be1
child 9949 e0f1c5697221
child 10035 c5bcdece77fb
--- a/hooks/syncschema.py	Thu Jul 17 11:08:56 2014 +0200
+++ b/hooks/syncschema.py	Fri Jul 18 17:35:25 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