don't ask confirm
authorSylvain Thenault <sylvain.thenault@logilab.fr>
Fri, 05 Dec 2008 18:06:58 +0100
changeset 176 312024cbe717
parent 175 5c7bb5f1ede0
child 177 73aa03734425
don't ask confirm
misc/migration/2.99.0_Any.py
--- a/misc/migration/2.99.0_Any.py	Fri Dec 05 18:05:34 2008 +0100
+++ b/misc/migration/2.99.0_Any.py	Fri Dec 05 18:06:58 2008 +0100
@@ -1,11 +1,12 @@
 from cubicweb import CW_MIGRATION_MAP
 
 for pk, in rql('Any K WHERE X is EProperty, X pkey IN (%s), X pkey K'
-              % ','.join("'system.version.%s'" % cube for cube in CW_MIGRATION_MAP)):
+               % ','.join("'system.version.%s'" % cube for cube in CW_MIGRATION_MAP),
+               ask_confirm=False):
     cube = pk.split('.')[-1]
     newk = pk.replace(cube, CW_MIGRATION_MAP[cube])
     rql('SET X pkey %(newk)s WHERE X pkey %(oldk)s',
-        {'oldk': pk, 'newk': newk})
+        {'oldk': pk, 'newk': newk}, ask_confirm=False)
     print 'renamed', pk, 'to', newk
 
 add_entity_type('ECache')