feat(backups): alert when scheduled backups are missing (#11433)

This commit is contained in:
Andras Bacsai
2026-09-07 14:09:42 +02:00
committed by GitHub
parent 778a698553
commit 0b462f6a58
13 changed files with 349 additions and 4 deletions
@@ -6,6 +6,13 @@ use Illuminate\Database\Eloquent\Relations\BelongsTo;
class ScheduledDatabaseBackupExecution extends BaseModel
{
protected static function booted(): void
{
static::created(function (ScheduledDatabaseBackupExecution $execution): void {
$execution->scheduledDatabaseBackup()->update(['last_execution_at' => $execution->created_at ?? now()]);
});
}
protected $fillable = [
'uuid',
'scheduled_database_backup_id',