misc/migration/3.9.5_Any.py
author Julien Cristau <julien.cristau@logilab.fr>
Tue, 08 Jul 2014 11:33:32 +0200
changeset 9919 e013c35067d7
parent 6105 a648c832da1f
permissions -rw-r--r--
[etwist] use more specific REQUEST_ENTITY_TOO_LARGE instead of BAD_REQUEST When a request body exceeds the configured limit, return 413 to the client instead of a generic 400.

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