misc/migration/3.9.0_Any.py
author Laura Médioni <laura.medioni@logilab.fr>
Thu, 28 Aug 2014 07:49:31 +0200
changeset 9961 cef58bd36f7b
parent 5768 1e73a466aa69
permissions -rw-r--r--
[CWEP002 migration] properly raise exception on (add|drop)_relation_definition for computed relation Related to #3546717

if repo.system_source.dbdriver == 'postgres':
    sql('ALTER TABLE appears ADD COLUMN weight float')
    sql('UPDATE appears SET weight=1.0 ')