[migration/3.18] disable all hooks when setting up symmetric relations
authorJulien Cristau <julien.cristau@logilab.fr>
Thu, 19 Dec 2013 17:09:16 +0100
changeset 9369 176c1edf51b0
parent 9368 10694dd136f3
child 9370 15c695d8d865
[migration/3.18] disable all hooks when setting up symmetric relations This operation is semantically a no-op, so it should be invisible for the application. Related to #3259713.
misc/migration/3.18.0_Any.py
--- a/misc/migration/3.18.0_Any.py	Thu Dec 12 15:38:49 2013 +0100
+++ b/misc/migration/3.18.0_Any.py	Thu Dec 19 17:09:16 2013 +0100
@@ -86,6 +86,6 @@
 
 for rschema in schema.relations():
     if rschema.symmetric:
-        with session.allow_all_hooks_but('activeintegrity'):
+        with session.deny_all_hooks_but():
             rql('SET X %(r)s Y WHERE Y %(r)s X, NOT X %(r)s Y' % {'r': rschema.type})
     commit()