cubicweb/misc/migration/3.9.0_Any.py
author Yann Voté <yann.vote@logilab.fr>
Thu, 27 Apr 2017 10:16:39 +0200
branch3.25
changeset 12185 c46f2bf815d2
parent 11057 0b59724cb3f2
permissions -rw-r--r--
[migration] Only drop moved table entities if it does not exists For very old instances (namely docaster), this table has never been created.

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