[migration] remove bad test when constructing attributes to copy in rename_entity_type: the old entity type is not in the fschema due to schema deserialization trick stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Wed, 18 Aug 2010 10:36:02 +0200
branchstable
changeset 6118 45eccda89480
parent 6117 f3fdfcbda54b
child 6119 b217635d3b28
[migration] remove bad test when constructing attributes to copy in rename_entity_type: the old entity type is not in the fschema due to schema deserialization trick
server/migractions.py
--- a/server/migractions.py	Tue Aug 17 15:25:29 2010 +0200
+++ b/server/migractions.py	Wed Aug 18 10:36:02 2010 +0200
@@ -860,7 +860,6 @@
                 attrs = ','.join(SQL_PREFIX + rschema.type
                                  for rschema in schema[newname].subject_relations()
                                  if (rschema.final or rschema.inlined)
-                                 and rschema in schema[oldname].subjrels
                                  and not rschema in PURE_VIRTUAL_RTYPES)
             else:
                 attrs += ('eid', 'creation_date', 'modification_date', 'cwuri')