mirror of
https://github.com/coollabsio/coolify.git
synced 2026-09-26 09:20:54 -04:00
feat(backups): alert when scheduled backups are missing (#11433)
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user