cubicweb/misc/migration/3.9.0_Any.py
author Elodie Thieblin <ethieblin@logilab.fr>
Wed, 18 Mar 2020 11:29:30 +0100
changeset 12927 89acc8d3d462
parent 11057 0b59724cb3f2
permissions -rw-r--r--
[doc] Remove zone cube which causes to crash on install The zone cube is not compatible with python3.

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