Migration fix cli imports

Merged Markus Scheidgen requested to merge migration-fix-cli-imports into v1.0.0

@dsikter This is what I tried to explain with my last comments in !437 (closed). Let me know, if this is acceptable.

This MR contains the commits of !437 (closed)

Merge request reports