[OE-3987] table versioning migration foreign key fixes