cubicweb/misc/migration/3.11.0_Any.py
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 17 Oct 2016 13:42:30 +0200
changeset 11771 96a8ad81317b
parent 11767 432f87a63057
child 11775 39cf9e55ada8
permissions -rw-r--r--
[rql2sql/test] Ensure test results predictability Without this, test were randomly failing within tox due to different order of solutions.

for rtype in ('cw_support', 'cw_dont_cross', 'cw_may_cross'):
    drop_relation_type(rtype)

add_entity_type('CWSourceSchemaConfig')

if not 'url' in schema['CWSource'].subjrels:
    add_attribute('CWSource', 'url')
    add_attribute('CWSource', 'parser')
    add_attribute('CWSource', 'latest_retrieval')