Task: Reporting relates to its company and employees 

Description 

Export jobs, payroll settings, closed payroll months with their lines and post-close changes, pivot templates, report access settings, collections, favourites, filter presets, report runs and subscriptions with their recipients relate to their company and employees, and the database deletes them with them.

Impact 

The migration adds the foreign keys; a database with reporting records of companies or employees that no longer exist is set up anew.