Quick fix to endpoints table name in relation_query_enforce_distinct_endpoints_alter().
randomName renamed to randomMachineName