misc/migration/3.9.0_Any.py
author Christophe de Vienne <christophe@unlish.com>
Sat, 30 Jan 2016 23:06:18 +0100
changeset 11097 900c27ea30e9
parent 5768 1e73a466aa69
permissions -rw-r--r--
[cwvreg] Fix propertyvalues hot updates When CWProperty instances are touched, the corresponding value gets updated in vreg['propertyvalues'], but their type was ignored.

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