misc/migration/3.9.0_Any.py
author Denis Laxalde <denis.laxalde@logilab.fr>
Mon, 30 Sep 2013 14:48:59 +0200
changeset 9285 e7c94121ce9d
parent 5768 1e73a466aa69
permissions -rw-r--r--
[book] Improve PostgreSQL configuration section * Do not advice for specific PostgreSQL version (point to meta-packages if available in Linux distros); * First mention packages from Linux distros, put the link to official postgres documentation at the end; Closes #2725302.

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