author | Sylvain Thenault <sylvain.thenault@logilab.fr> |
Fri, 21 Nov 2008 07:39:05 +0100 | |
changeset 121 | 823ccd597cf4 |
parent 113 | 1091d8d63f51 |
permissions | -rw-r--r-- |
from cubicweb import CW_MIGRATION_MAP for pk, in rql('Any K WHERE X is EProperty, X pkey IN (%s), X pkey K' % ','.join("'system.version.%s'" % cube for cube in CW_MIGRATION_MAP)): cube = pk.split('.')[-1] newk = pk.replace(cube, CW_MIGRATION_MAP[cube]) rql('SET X pkey %(newk)s WHERE X pkey %(oldk)s', {'oldk': pk, 'newk': newk}) print 'renamed', pk, 'to', newk add_entity_type('ECache')