[OE-3987] table versioning migration foreign key fixes
fixed buggy migration csv file
Merge branch 'develop' into jira/3987