misc/migration/3.9.0_Any.py
author Pierre-Yves David <pierre-yves.david@logilab.fr>
Wed, 26 Jun 2013 11:39:41 +0200
changeset 9103 b5c6d6aaa2bf
parent 5768 1e73a466aa69
permissions -rw-r--r--
[session] wrap too long line Too long line is too long. (Confucius 503 BC)

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