misc/migration/3.9.5_Any.py
author David Douard <david.douard@logilab.fr>
Wed, 24 Jul 2013 13:59:08 +0200
branchstable
changeset 9183 95e69c2d52a9
parent 6105 a648c832da1f
permissions -rw-r--r--
[doc] one must now manipulate the req.session.data dict (closes #2842345) instead of deprecated get/set/del_session_data methods.

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