Commit d5235e6b authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

[migration] Less verbose migration

don't ask confirm for commit (should be the default...)
parent 1d5d515a66d0
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 @@ sync_schema_props_perms('seda_data_object_reference_id')
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)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment