author | Sylvain Thénault <sylvain.thenault@logilab.fr> |
Fri, 07 Oct 2011 17:29:14 +0200 | |
branch | stable |
changeset 7928 | c65fd337fd1d |
parent 7927 | 44d6e41c0b62 |
child 7930 | 664d52cb936d |
--- a/server/migractions.py Fri Oct 07 17:18:10 2011 +0200 +++ b/server/migractions.py Fri Oct 07 17:29:14 2011 +0200 @@ -1545,7 +1545,7 @@ """ rschema = self.repo.schema.rschema(attr) oldtype = rschema.objects(etype)[0] - rdefeid = rschema.rproperty(etype, oldtype, 'eid') + rdefeid = rschema.rdef(etype, oldtype).eid sql = ("UPDATE cw_CWAttribute " "SET cw_to_entity=(SELECT cw_eid FROM cw_CWEType WHERE cw_name='%s')" "WHERE cw_eid=%s") % (newtype, rdefeid)