Keep commit hash in migration

Merged Christina Maria Mayr requested to merge test_commit_hash into master

Currently, the commit hash is lost during migrations. I have adjusted the behavior.

Merge request reports