cubicweb_seda/migration/0.12.0_Any.py
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Fri, 03 Nov 2017 16:03:57 +0100
changeset 2861 583f2dbd34dd
parent 2831 854ad0e32400
child 2867 fab0834688f7
permissions -rw-r--r--
[migration] Add migration bits missing from 0.11 to insert expected SEDAMimeType and SEDAFormatId entities.

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()