misc/migration/3.9.0_Any.py
author Katia Saurfelt <katia.saurfelt@logilab.fr>
Mon, 28 Apr 2014 18:11:21 +0200
changeset 9712 6c6cd8c4b256
parent 5768 1e73a466aa69
permissions -rw-r--r--
[entity] add a new `cw_linkable_rql` method * the new method returns the entities that are or may be related to the current one by the relation passed as an argument. Closes #3738011.

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