misc/migration/3.9.0_Any.py
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 09 Feb 2011 18:06:29 +0100
changeset 6963 5774d4ba4306
parent 5768 1e73a466aa69
permissions -rw-r--r--
[datafeed] introduce a host mapping so dev instance may transparently redirect request to another host than the actual's one

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