misc/migration/3.9.0_Any.py
author Christophe de Vienne <christophe@unlish.com>
Tue, 07 Apr 2015 17:08:53 +0200
changeset 10329 f92823a66f18
parent 5768 1e73a466aa69
permissions -rw-r--r--
[sqlite] Fix integrity error parsing Up to sqlite 3.7, integrity error message may be in the singular form if only one column is in the unique index. Closes #5224632

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