misc/migration/3.9.0_Any.py
author Aurelien Campeas <aurelien.campeas@logilab.fr>
Thu, 24 Nov 2011 17:00:09 +0100
changeset 8101 f9fa2f47572c
parent 5768 1e73a466aa69
permissions -rw-r--r--
[sorted navigation] refactor code so that when an attribute is found, nb_chars may be recomputed anyway according to variable type

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