misc/migration/3.9.0_Any.py
author Sylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 20 Jan 2011 08:23:27 +0100 (2011-01-20)
branchstable
changeset 6852 970d1aab42a1
parent 5768 1e73a466aa69
permissions -rw-r--r--
[migration] fix migration of old cw instances which do not have yet the CWUniqueTogetherConstraint entity type
if repo.system_source.dbdriver == 'postgres':
    sql('ALTER TABLE appears ADD COLUMN weight float')
    sql('UPDATE appears SET weight=1.0 ')