misc/migration/3.9.0_Any.py
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 10 Nov 2011 10:12:37 +0100
changeset 8079 0f1126b9038e
parent 5768 1e73a466aa69
permissions -rw-r--r--
[3.14 migration] strip constraint value to avoid extra new lines

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