[migration] Less verbose migration 0.12.0 centos/0.12.0-1 debian/0.12.0-1
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 14 Nov 2017 18:06:41 +0100
changeset 2883 17067f4de8d1
parent 2882 1d5d515a66d0
child 2884 d4a8d7950007
[migration] Less verbose migration don't ask confirm for commit (should be the default...)
cubicweb_seda/migration/0.12.0_Any.py
--- a/cubicweb_seda/migration/0.12.0_Any.py	Tue Nov 14 17:19:25 2017 +0100
+++ b/cubicweb_seda/migration/0.12.0_Any.py	Tue Nov 14 18:06:41 2017 +0100
@@ -1,14 +1,14 @@
 from cubicweb_seda.dataimport import import_seda_schemes
 
 rql('SET X compat_list CL + ", RNG" WHERE X compat_list CL')
-commit()
+commit(ask_confirm=False)
 
 rql('INSERT SEDAMimeType X: X user_cardinality "0..1", X seda_mime_type_from BDO '
     'WHERE NOT Y seda_mime_type_from BDO')
 
 rql('INSERT SEDAFormatId X: X user_cardinality "0..1", X seda_format_id_from BDO '
     'WHERE NOT Y seda_format_id_from BDO')
-commit()
+commit(ask_confirm=False)
 
 sync_schema_props_perms('seda_mime_type_to')
 sync_schema_props_perms('seda_format_id_to')
@@ -16,5 +16,5 @@
 
 rql('DELETE CS scheme_relation_type RT WHERE '
     'RT name IN ("seda_language_to", "seda_description_language_to")')
-commit()
+commit(ask_confirm=False)
 import_seda_schemes(cnx)