cubicweb/misc/migration/3.9.0_Any.py
author Nicola Spanti <nicola.spanti@logilab.fr>
Thu, 19 Dec 2019 10:31:49 +0100
changeset 12828 dadbd4148a44
parent 11057 0b59724cb3f2
permissions -rw-r--r--
[py] Make flake8 less angry with cubicweb/server/sources/

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