misc/migration/3.9.0_Any.py
author Rémi Cardona <remi.cardona@logilab.fr>
Fri, 07 Nov 2014 15:33:30 +0100
changeset 10349 efbbf1e93a04
parent 5768 1e73a466aa69
permissions -rw-r--r--
[dataimport] Properly escape strings sent to COPY FROM (closes #5278743) See http://www.postgresql.org/docs/9.1/static/sql-copy.html#AEN64296 for escaping codes.

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