misc/migration/3.9.5_Any.py
author Julien Cristau <julien.cristau@logilab.fr>
Fri, 10 Jul 2015 09:35:52 +0200
changeset 10531 51261952d068
parent 6105 a648c832da1f
permissions -rw-r--r--
[schema] Make syntax compatible with print_function yams seems to exec() us sometimes (instead of __import__()), and yams.reader uses print_function nowadays.

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