misc/migration/3.9.0_Any.py
author Aurelien Campeas <aurelien.campeas@logilab.fr>
Tue, 14 Dec 2010 10:39:20 +0100
branchstable
changeset 6744 db1e9e733a16
parent 5768 1e73a466aa69
permissions -rw-r--r--
[doc/book] mention that the shell is a python shell

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