cubicweb/misc/migration/3.9.0_Any.py
author Laurent Peuch <cortex@worlddomination.be>
Thu, 05 Dec 2019 18:40:38 +0100
changeset 12808 6cbb1e2a6e49
parent 11057 0b59724cb3f2
permissions -rw-r--r--
[refactoring] class variable is useless

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