cubicweb/misc/migration/3.11.0_Any.py
author Denis Laxalde <denis.laxalde@logilab.fr>
Thu, 22 Mar 2018 13:53:33 +0100
branch3.26
changeset 12283 9bee3134d304
parent 11775 39cf9e55ada8
permissions -rw-r--r--
[pkg] Version 3.26.2

for rtype in ('cw_support', 'cw_dont_cross', 'cw_may_cross'):
    drop_relation_type(rtype)

if not 'url' in schema['CWSource'].subjrels:
    add_attribute('CWSource', 'url')
    add_attribute('CWSource', 'parser')
    add_attribute('CWSource', 'latest_retrieval')