cubicweb #2846978 migration from pre-3.13.1 versions is b0rked [validation pending]

the eid_type_source replacement is done too late so things try to access the nonexistent entity.asource column:

SELECT type, source, extid, asource FROM entities WHERE eid=33831
Traceback (most recent call last):
  File "/home/jcr/src/cw/cubicweb/cwctl.py", line 167, in run_arg
    status = cmdmeth(appid)
  File "/home/jcr/src/cw/cubicweb/cwctl.py", line 820, in versions_instance
    repo = config.migration_handler().repo_connect()
  File "/home/jcr/src/cw/cubicweb/server/serverconfig.py", line 386, in migration_handler
    verbosity=verbosity)
  File "/home/jcr/src/cw/cubicweb/server/migractions.py", line 101, in __init__
    self.repo_connect()
  File "/home/jcr/src/cw/logilab/common/decorators.py", line 66, in wrapped
    return self.__call__(*args, **kwargs)
  File "/home/jcr/src/cw/logilab/common/decorators.py", line 60, in __call__
    value = __me.callable(self, *args)
  File "/home/jcr/src/cw/cubicweb/server/migractions.py", line 132, in repo_connect
    self.repo = get_repository(config=self.config)
  File "/home/jcr/src/cw/cubicweb/dbapi.py", line 107, in get_repository
    return _get_inmemory_repo(config, vreg)
  File "/home/jcr/src/cw/cubicweb/dbapi.py", line 97, in _get_inmemory_repo
    return Repository(config, TasksManager(), vreg=vreg)
  File "/home/jcr/src/cw/cubicweb/server/repository.py", line 197, in __init__
    self.init_cnxset_pool()
  File "/home/jcr/src/cw/cubicweb/server/repository.py", line 233, in init_cnxset_pool
    self.init_sources_from_database()
  File "/home/jcr/src/cw/cubicweb/server/repository.py", line 269, in init_sources_from_database
    self.system_source.init(True, sourceent)
  File "/home/jcr/src/cw/cubicweb/server/sources/native.py", line 409, in init
    super(NativeSQLSource, self).init(activated, source_entity)
  File "/home/jcr/src/cw/cubicweb/server/sources/__init__.py", line 238, in init
    self._entity_update(source_entity)
  File "/home/jcr/src/cw/cubicweb/server/sources/__init__.py", line 216, in _entity_update
    source_entity.complete()
  File "/home/jcr/src/cw/cubicweb/entity.py", line 911, in complete
    if attributes is None and self.cw_metainformation()['source']['uri'] == 'system':
  File "/home/jcr/src/cw/logilab/common/decorators.py", line 66, in wrapped
    return self.__call__(*args, **kwargs)
  File "/home/jcr/src/cw/logilab/common/decorators.py", line 60, in __call__
    value = __me.callable(self, *args)
  File "/home/jcr/src/cw/cubicweb/entity.py", line 645, in cw_metainformation
    res = self._cw.describe(self.eid, asdict=True)
  File "/home/jcr/src/cw/cubicweb/server/session.py", line 856, in describe
    metas = self.repo.type_and_source_from_eid(eid, self)
  File "/home/jcr/src/cw/cubicweb/server/repository.py", line 1043, in type_and_source_from_eid
    session, eid)
  File "/home/jcr/src/cw/cubicweb/server/sources/native.py", line 871, in eid_type_source
    res = self._eid_type_source(session, eid, sql)
  File "/home/jcr/src/cw/cubicweb/server/sources/native.py", line 866, in _eid_type_source
    raise UnknownEid(eid)
priorityminor
typebug
done in3.17.3
load0.200
load left0.000
closed by#b3ad80aa645f fix migration from pre-3.13.1 versions (closes #2846978)
patchfix migration from pre-3.13.1 versions (closes #2846978) [applied]