cubicweb/misc/migration/3.9.0_Any.py
author Philippe Pepiot <philippe.pepiot@logilab.fr>
Thu, 28 Nov 2019 11:30:23 +0100
changeset 12778 8af81736f150
parent 11057 0b59724cb3f2
permissions -rw-r--r--
[pkg] Version 3.27.0rc1

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