misc/migration/3.9.0_Any.py
author Aurelien Campeas <aurelien.campeas@logilab.fr>
Tue, 13 May 2014 18:47:52 +0200
branchstable
changeset 9734 f61bb1a033e4
parent 5768 1e73a466aa69
permissions -rw-r--r--
Added tag cubicweb-version-3.17.15, cubicweb-debian-version-3.17.15-1, cubicweb-centos-version-3.17.15-1 for changeset ee413076752b

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