misc/migration/3.9.5_Any.py
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 29 Apr 2011 12:12:14 +0200
branchstable
changeset 7290 f2051e08cbff
parent 6105 a648c832da1f
permissions -rw-r--r--
[primary view] display entity source in 'metadata' view if it's not the system source

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