Add multi-DB support to loose foreign keys
How:
- Iterate over the connections within the
CleanupWorkerclass. - For each connection invoke the
CleanupService - Within the
CleanupService, re-connect theLooseForeignKeys::DeletedRecordsmodel to the given connection.
The following discussion from !69165 (merged) should be addressed:
-
@ayufan started a discussion: (+2 comments) Technically this worker does not work with multiple databases, but I assume this is next step.