cubicweb/misc/migration/3.11.0_Any.py
author Philippe Pepiot <philippe.pepiot@logilab.fr>
Tue, 17 Oct 2017 11:58:35 +0200
branch3.25
changeset 12214 d238badfc268
parent 11775 39cf9e55ada8
permissions -rw-r--r--
[pkg] version 3.25.3

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