misc/migration/3.9.5_Any.py
author Julien Cristau <julien.cristau@logilab.fr>
Wed, 15 Jan 2014 18:20:25 +0100
changeset 9410 ce072c9aa573
parent 6105 a648c832da1f
permissions -rw-r--r--
[migration/3.18] Explicitly delete constraint on defaultval Make sure the SizeConstraint on defaultval is removed, and avoid more unnecessary commits.

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