# HG changeset patch # User Sylvain Thénault # Date 1300969466 -3600 # Node ID 62c880e5d980c440cdfa157e13afd9dca8a15b74 # Parent b4e7099ea2f13d50dee552922cc233728958d4bd [migration] explicit first step of 3.10.9 migration. Previously there was on a "commit now" confirmation. The reason of the request are now explained and both request must be confirmed. diff -r b4e7099ea2f1 -r 62c880e5d980 misc/migration/3.10.9_Any.py --- a/misc/migration/3.10.9_Any.py Mon Mar 21 17:44:57 2011 +0100 +++ b/misc/migration/3.10.9_Any.py Thu Mar 24 13:24:26 2011 +0100 @@ -1,10 +1,11 @@ from __future__ import with_statement import sys -# 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 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