cubicweb/misc/migration/3.11.0_Any.py
author Denis Laxalde <denis.laxalde@logilab.fr>
Tue, 02 Jul 2019 14:54:01 +0200
branch3.26
changeset 12679 c799179d7ca6
parent 11775 39cf9e55ada8
permissions -rw-r--r--
Added tag 3.26.12, debian/3.26.12-1 for changeset 4531a266f8b2

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