misc/migration/3.9.5_Any.py
author Julien Cristau <julien.cristau@logilab.fr>
Wed, 16 Jul 2014 17:20:55 +0200
changeset 9888 5b48dcc02be1
parent 6105 a648c832da1f
permissions -rw-r--r--
[hooks/syncschema] avoid altering a dropped table If the constraint's rdef is being removed, CWConstraintDelOp doesn't need to do anything. Otherwise it may try to alter a removed table/column. Closes #4154549

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