migration/2.0.1_Any.py
author Julien Cristau <julien.cristau@logilab.fr>
Mon, 13 Apr 2015 11:12:49 +0200
changeset 1825 b859e64fc3ee
parent 634 8558f1d22394
permissions -rw-r--r--
Move setting of TestExecution.{options,execution_of} to a hook (closes #5242517) Apart from the 'archive' setting, they're inherited from the ProjectEnvironment and/or TestConfig. Make 'archive' a separate attribute instead.

rql('SET X target "apycot.pylint" WHERE X is RecipeStep, X target "apycot.python.pylint"',
    ask_confirm=True)
commit()

if 'nosy_list' in schema and ('TestConfig', 'CWUser') in schema['nosy_list'].rdefs:
    rql('SET U interested_in PE WHERE TC use_environment PE, '
        'U interested_in TC, NOT U interested_in PE',
        ask_confirm=True)
    drop_relation_definition('CWUser', 'interested_in', 'TestConfig')
    drop_relation_definition('TestConfig', 'nosy_list', 'CWUser')