misc/migration/3.9.5_Any.py
author Vladimir Popescu <vladimir.popescu@logilab.fr>
Fri, 19 Jul 2013 17:38:15 +0200
changeset 9687 00c2356faba7
parent 6105 a648c832da1f
permissions -rw-r--r--
[server] Refactor Repository.register_user into a CubicWeb service (closes #3020639) [jcr: move commit to the caller; add item in release notes; fix NameErrors]

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