cubicweb/misc/migration/3.9.0_Any.py
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Tue, 12 Sep 2017 09:48:02 +0200
branch3.25
changeset 12200 457274b4e017
parent 11057 0b59724cb3f2
permissions -rw-r--r--
Added tag 3.25.2, debian/3.25.2-1, centos/3.25.2-1 for changeset 5010381099f1

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