cubicweb/hooks/metadata.py
changeset 11757 e845746b4d3c
parent 11756 60fed6272771
child 11763 39df042f4ab4
--- a/cubicweb/hooks/metadata.py	Fri Sep 30 17:36:40 2016 +0200
+++ b/cubicweb/hooks/metadata.py	Thu Sep 29 11:44:19 2016 +0200
@@ -200,15 +200,6 @@
             syssource = newsource.repo_source
             oldsource = self._cw.entity_from_eid(schange[self.eidfrom])
             entity = self._cw.entity_from_eid(self.eidfrom)
-            # we don't want the moved entity to be reimported later.  To
-            # distinguish this state, move the record from the 'entities' table
-            # to 'moved_entities'.  External source will then have consider
-            # case where `extid2eid` returns a negative eid as 'this entity was
-            # known but has been moved, ignore it'.
-            extid = self._cw.entity_metas(entity.eid)['extid']
-            assert extid is not None
-            attrs = {'eid': entity.eid, 'extid': b64encode(extid).decode('ascii')}
-            self._cw.system_sql(syssource.sqlgen.insert('moved_entities', attrs), attrs)
             attrs = {'type': entity.cw_etype, 'eid': entity.eid, 'extid': None,
                      'asource': 'system'}
             self._cw.system_sql(syssource.sqlgen.update('entities', attrs, ['eid']), attrs)