Add migrate DB repository consistency check
Merge pull request #769 from camptocamp/const-migration

Add migrate DB repository consistency check