misc/migration/3.9.0_Any.py
author Julien Cristau <julien.cristau@logilab.fr>
Thu, 23 Jan 2014 10:53:24 +0100
changeset 9477 07fc991612b0
parent 5768 1e73a466aa69
permissions -rw-r--r--
[migration/3.18] protect against attributes in db missing from fsschema Happens if a previous migration forgot a drop_attribute. Closes #3471609

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