Fixes #7528 — /claim #7528
When deploying a Docker Compose file via GitHub App (dockercompose buildpack), database services are not detected and ServiceDatabase records are not created — meaning automated backups are unavailable. This works correctly for “Empty Docker Compose” and one-click services.
Service model → serviceParser() → calls isDatabaseImage() → creates ServiceDatabase ✅Application model → applicationParser() → calls isDatabaseImage() but never creates ServiceDatabase ❌ServiceDatabase had a non-nullable service_id FK, making it impossible to associate with an Application.
application_id to service_databases, make service_id nullableapplication() relation + helper methods for polymorphic parent accessdatabases() relationapplicationParser() and create ServiceDatabase recordsservice-> accessServiceDatabase on Application deletionisDatabaseImage() (same logic as service parser)DatabaseBackupJob infrastructuremickaelfree
@mickaelfree
Ilias Ism
@me