misc/migration/3.9.0_Any.py
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 29 Sep 2011 14:05:42 +0200
branchstable
changeset 7887 42a0b7398d31
parent 5768 1e73a466aa69
permissions -rw-r--r--
[repository] when deleting relations of a deleted external entity, we should skip non-crossable relation (closes #1973680) elses this may lead to things as described in the ticket...

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