misc/migration/3.9.0_Any.py
author Vladimir Popescu <vladimir.popescu@logilab.fr>
Thu, 25 Apr 2013 10:57:01 +0200
changeset 8927 885dea8f16a0
parent 5768 1e73a466aa69
permissions -rw-r--r--
[cubicweb/doc] Replace dc_type() by cw_etype dc_type() is may be translated. Leading to terrible terrible damage.

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