[migration] handle non-existing attribute type when adding an entity type
The final type needs to be added to the schema first.
Related to #7569998.
usr/lib/python2*/*-packages/cubicweb/dataimport/
usr/lib/python2*/*-packages/cubicweb/server/
usr/lib/python2*/*-packages/cubicweb/hooks/
usr/lib/python2*/*-packages/cubicweb/sobjects/
usr/lib/python2*/*-packages/cubicweb/schemas/
usr/share/cubicweb/migration/