misc/migration/3.9.0_Any.py
author Aurelien Campeas <aurelien.campeas@logilab.fr>
Tue, 25 Jun 2013 12:11:42 +0200
changeset 9148 1b549c1acd4f
parent 5768 1e73a466aa69
permissions -rw-r--r--
[schema,server] add a security debugging aid (closes #2920304) - Add a DGB_SEC debugging flag (to be used with set_debug/debugged). - Add a context manager (tunesecurity) to filter security assertions. Note: this does not address all read-security mecanisms.

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