--- a/misc/migration/3.10.9_Any.py Thu Mar 03 12:55:29 2011 +0100
+++ b/misc/migration/3.10.9_Any.py Thu Mar 03 15:44:07 2011 +0100
@@ -1,5 +1,10 @@
from __future__ import with_statement
+# fix some corrupted entities noticed on several instances
+rql('DELETE CWConstraint X WHERE NOT E constrained_by X')
+rql('SET X is_instance_of Y WHERE X is Y, NOT X is_instance_of Y')
+commit()
+
if confirm('fix existing cwuri?'):
from logilab.common.shellutils import ProgressBar
from cubicweb.server.session import hooks_control