misc/migration/3.9.5_Any.py
author Julien Cristau <julien.cristau@logilab.fr>
Fri, 16 Jan 2015 12:35:46 +0100
changeset 10209 4c64a41c0a1d
parent 6105 a648c832da1f
permissions -rw-r--r--
Use a moved_entities table to record external entities moved to the system source Instead of using a negative eid in the entities table, move the record to a new table so we don't have an interval with a missing eid in entities. Related to #4846892

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