misc/migration/3.9.5_Any.py
author Pierre-Yves David <pierre-yves.david@logilab.fr>
Tue, 25 Jun 2013 18:15:45 +0200
changeset 9095 6656fafd96c8
parent 6105 a648c832da1f
permissions -rw-r--r--
[connection] invert __init__ parameter Takes session first. At some point, the connection_id will become optional for Connection created explicitly.

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