misc/migration/3.9.0_Any.py
author Julien Cristau <julien.cristau@logilab.fr>
Thu, 10 Apr 2014 15:03:01 +0200
changeset 9680 8fb8f001f4e2
parent 5768 1e73a466aa69
permissions -rw-r--r--
[hooks] run cascading delete hook later Applications may have their own before_delete_entity hooks that rely on the composite relations still existing.

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