# HG changeset patch # User Julien Cristau # Date 1387469356 -3600 # Node ID 176c1edf51b0f3298f44da59e625259a7b77eb50 # Parent 10694dd136f341064017626ccf3ccc49dde0917d [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. diff -r 10694dd136f3 -r 176c1edf51b0 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()