Fixed foreign key of ticket occurrence in build script