misc/migration/3.9.5_Any.py
author Katia Saurfelt <katia.saurfelt@logilab.fr>
Mon, 28 Apr 2014 18:11:21 +0200
changeset 9712 6c6cd8c4b256
parent 6105 a648c832da1f
permissions -rw-r--r--
[entity] add a new `cw_linkable_rql` method * the new method returns the entities that are or may be related to the current one by the relation passed as an argument. Closes #3738011.

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