misc/migration/3.9.5_Any.py
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 20 Jan 2011 08:23:27 +0100
branchstable
changeset 6852 970d1aab42a1
parent 6105 a648c832da1f
permissions -rw-r--r--
[migration] fix migration of old cw instances which do not have yet the CWUniqueTogetherConstraint entity type

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