misc/migration/3.9.0_Any.py
author Damien Garaud <damien.garaud@logilab.fr>
Tue, 06 May 2014 18:32:03 +0200
changeset 9827 c7ce035aede8
parent 5768 1e73a466aa69
permissions -rw-r--r--
[dataimport] Drop reference to the 'source' column (closes #4067694). CW 3.19 drops the multi-source support. This column does not exist in 3.19.

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