--- a/cubicweb/hooks/syncschema.py Fri Sep 30 17:38:12 2016 +0200
+++ b/cubicweb/hooks/syncschema.py Wed Oct 05 15:30:10 2016 +0200
@@ -309,9 +309,9 @@
self.info('renamed table %s to %s', oldname, newname)
sqlexec('UPDATE entities SET type=%(newname)s WHERE type=%(oldname)s',
{'newname': newname, 'oldname': oldname})
- for eid, (etype, extid) in cnx.repo._type_extid_cache.items():
+ for eid, etype in cnx.repo._type_cache.items():
if etype == oldname:
- cnx.repo._type_extid_cache[eid] = (newname, extid)
+ cnx.repo._type_cache[eid] = newname
# recreate the indexes
for rschema in eschema.subject_relations():
if rschema.inlined or (rschema.final and eschema.rdef(rschema.type).indexed):