[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.
--- 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()