[migration] don't ask confirm here 3.5
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 14 Sep 2009 18:25:11 +0200
branch3.5
changeset 3213 36a2357ccbc4
parent 3212 07d11bacfefe
child 3214 49d085ba05ff
[migration] don't ask confirm here
server/migractions.py
--- a/server/migractions.py	Mon Sep 14 18:24:42 2009 +0200
+++ b/server/migractions.py	Mon Sep 14 18:25:11 2009 +0200
@@ -415,11 +415,12 @@
         espschema = eschema.specializes()
         if repospschema and not espschema:
             self.rqlexec('DELETE X specializes Y WHERE X is CWEType, X name %(x)s',
-                         {'x': str(repoeschema)})
+                         {'x': str(repoeschema)}, ask_confirm=False)
         elif not repospschema and espschema:
             self.rqlexec('SET X specializes Y WHERE X is CWEType, X name %(x)s, '
                          'Y is CWEType, Y name %(y)s',
-                         {'x': str(repoeschema), 'y': str(espschema)})
+                         {'x': str(repoeschema), 'y': str(espschema)},
+                         ask_confirm=False)
         self.rqlexecall(ss.updateeschema2rql(eschema),
                         ask_confirm=self.verbosity >= 2)
         for rschema, targettypes, role in eschema.relation_definitions(True):