cubicweb/misc/migration/3.11.0_Any.py
author Philippe Pepiot <philippe.pepiot@logilab.fr>
Thu, 28 Nov 2019 11:48:03 +0100
changeset 12779 44147dab9d27
parent 11775 39cf9e55ada8
permissions -rw-r--r--
Use python3 shebang for scripts Reported by lintian "python-script-but-no-python-dep"

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