misc/migration/3.9.0_Any.py
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 11 May 2011 19:02:27 +0200
branchstable
changeset 7372 65bd75f16d65
parent 5768 1e73a466aa69
permissions -rw-r--r--
[c-c shell] we should commit the migration handler, cnx is not None unless connected through pyro

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