misc/migration/3.9.0_Any.py
author Adrien Di Mascio <Adrien.DiMascio@logilab.fr>
Fri, 10 Dec 2010 15:47:09 +0100
branchstable
changeset 6742 e03d427209cb
parent 5768 1e73a466aa69
permissions -rw-r--r--
[registry] backout 120c7ea6e1fa: errors should not pass silently Catching ImportError silently while loading files has too many side effects. (e.g. if system hooks / entities can't be registered).

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