misc/migration/3.9.0_Any.py
author Julien Cristau <julien.cristau@logilab.fr>
Mon, 22 Dec 2014 14:39:50 +0100
changeset 10129 52adf66fae7d
parent 5768 1e73a466aa69
permissions -rw-r--r--
[migration] don't crash when deleting a non-existing rtype When asked to delete a relation type, instead of checking if it was computed or not, just delete both the CWRType and CWComputedRType.

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