cubicweb/misc/migration/3.11.0_Any.py
author David Douard <david.douard@logilab.fr>
Fri, 18 Nov 2016 15:00:43 +0100
branch3.24
changeset 11839 18e72d24dc58
parent 11775 39cf9e55ada8
permissions -rw-r--r--
Added tag 3.24.1, debian/3.24.1-1, centos/3.24.1-1 for changeset da52fda6f15b

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