[OE-3987] table versioning migration foreign key fixes
[OE-3987] typo
Merge branch 'develop' into jira/3987