cubicweb/misc/migration/3.9.0_Any.py
author Laurent Peuch <cortex@worlddomination.be>
Wed, 18 Dec 2019 05:48:25 +0100
changeset 12813 9c151701d63e
parent 11057 0b59724cb3f2
permissions -rw-r--r--
[doc/fix] BwCompatCWRegistry class doesn't exist anymore

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