misc/migration/3.9.5_Any.py
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 29 Sep 2011 14:05:42 +0200
branchstable
changeset 7887 42a0b7398d31
parent 6105 a648c832da1f
permissions -rw-r--r--
[repository] when deleting relations of a deleted external entity, we should skip non-crossable relation (closes #1973680) elses this may lead to things as described in the ticket...

if not rql('CWConstraintType X WHERE X name "RQLUniqueConstraint"',
           ask_confirm=False):
    rql('INSERT CWConstraintType X: X name "RQLUniqueConstraint"',
        ask_confirm=False)