[migration] Add migration bits missing from 0.11
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 03 Nov 2017 16:03:57 +0100
changeset 2861 583f2dbd34dd
parent 2844 f287617a85f7
child 2862 f434324b01f0
[migration] Add migration bits missing from 0.11 to insert expected SEDAMimeType and SEDAFormatId entities.
cubicweb_seda/migration/0.12.0_Any.py
--- a/cubicweb_seda/migration/0.12.0_Any.py	Fri Nov 03 11:40:34 2017 +0100
+++ b/cubicweb_seda/migration/0.12.0_Any.py	Fri Nov 03 16:03:57 2017 +0100
@@ -1,2 +1,9 @@
 rql('SET X compat_list CL + ", RNG" WHERE X compat_list CL')
 commit()
+
+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()