misc/migration/3.9.5_Any.py
author Pierre-Yves David <pierre-yves.david@logilab.fr>
Thu, 09 Jun 2011 12:20:57 +0200
branchstable
changeset 7477 3d64867f1019
parent 6105 a648c832da1f
permissions -rw-r--r--
[bfss] Catch EnvironmentError instead of OSError when trying to read attributes bffstored This will also catch IOError (as file not found) that might be encountered expectable too.

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