misc/migration/3.9.5_Any.py
author Pierre-Yves David <pierre-yves.david@logilab.fr>
Fri, 14 Jun 2013 12:11:42 +0200
changeset 9026 84c5b01ebb3e
parent 6105 a648c832da1f
permissions -rw-r--r--
[connection] move hook control logic on Connection The _hook_control context manager now operate on connection. We have to keep a specific entry point in Session to ensure Connection object are properly cleaned up when using session to "manage" Connection live cycle. Related to #2503918
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
6105
a648c832da1f RQLUniqueConstraint not in CWConstraintType for some old instances
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     1
if not rql('CWConstraintType X WHERE X name "RQLUniqueConstraint"',
a648c832da1f RQLUniqueConstraint not in CWConstraintType for some old instances
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     2
           ask_confirm=False):
a648c832da1f RQLUniqueConstraint not in CWConstraintType for some old instances
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     3
    rql('INSERT CWConstraintType X: X name "RQLUniqueConstraint"',
a648c832da1f RQLUniqueConstraint not in CWConstraintType for some old instances
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents:
diff changeset
     4
        ask_confirm=False)