cubicweb/misc/migration/3.11.0_Any.py
author Laurent Peuch <cortex@worlddomination.be>
Thu, 19 Dec 2019 08:13:52 +0100
changeset 12826 c13c0188f8a3
parent 11775 39cf9e55ada8
permissions -rw-r--r--
autopep8

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