[migration] Stop asking confirm to commit 3.24
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 30 Jan 2017 18:14:45 +0100
branch3.24
changeset 11938 fc19dda111dc
parent 11937 7d3ee5a516fa
child 11939 7402b18b48a7
[migration] Stop asking confirm to commit
cubicweb/misc/migration/3.24.4_Any.py
--- a/cubicweb/misc/migration/3.24.4_Any.py	Mon Jan 30 17:17:17 2017 +0100
+++ b/cubicweb/misc/migration/3.24.4_Any.py	Mon Jan 30 18:14:45 2017 +0100
@@ -14,10 +14,10 @@
             column = 'cw_{0}'.format(rdef.rtype)
             if any(isinstance(cstr, UniqueConstraint) for cstr in rdef.constraints):
                 source.create_index(cnx, table, column, unique=True)
-                commit()
+                commit(ask_confirm=False)
             if rschema.inlined or rdef.indexed:
                 source.create_index(cnx, table, column)
-                commit()
+                commit(ask_confirm=False)
 
 schema_indices = expected_indexes(cnx)
 db_indices = database_indexes(cnx)