misc/migration/3.9.0_Any.py
author Rémi Cardona <remi.cardona@logilab.fr>
Thu, 02 Jul 2015 12:19:49 +0200
changeset 10483 c8dbb845b465
parent 5768 1e73a466aa69
permissions -rw-r--r--
[migration/3.21] Make index and table creation idempotent

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