wip: mongodb backup
This commit is contained in:
		@@ -6,6 +6,7 @@ use App\Models\S3Storage;
 | 
			
		||||
use App\Models\ScheduledDatabaseBackup;
 | 
			
		||||
use App\Models\ScheduledDatabaseBackupExecution;
 | 
			
		||||
use App\Models\Server;
 | 
			
		||||
use App\Models\StandaloneMongodb;
 | 
			
		||||
use App\Models\StandalonePostgresql;
 | 
			
		||||
use App\Models\Team;
 | 
			
		||||
use App\Notifications\Database\BackupFailed;
 | 
			
		||||
@@ -27,7 +28,7 @@ class DatabaseBackupJob implements ShouldQueue, ShouldBeEncrypted
 | 
			
		||||
    public ?Team $team = null;
 | 
			
		||||
    public Server $server;
 | 
			
		||||
    public ScheduledDatabaseBackup $backup;
 | 
			
		||||
    public StandalonePostgresql $database;
 | 
			
		||||
    public StandalonePostgresql|StandaloneMongodb $database;
 | 
			
		||||
 | 
			
		||||
    public ?string $container_name = null;
 | 
			
		||||
    public ?ScheduledDatabaseBackupExecution $backup_log = null;
 | 
			
		||||
 
 | 
			
		||||
@@ -7,7 +7,7 @@
 | 
			
		||||
        href="{{ route('project.database.logs', $parameters) }}">
 | 
			
		||||
        <button>Logs</button>
 | 
			
		||||
    </a>
 | 
			
		||||
    @if ($database->getMorphClass() === 'App\Models\StandalonePostgresql')
 | 
			
		||||
    @if ($database->getMorphClass() === 'App\Models\StandalonePostgresql' || $database->getMorphClass() === 'App\Models\StandaloneMongodb')
 | 
			
		||||
        <a class="{{ request()->routeIs('project.database.backups.all') ? 'text-white' : '' }}"
 | 
			
		||||
            href="{{ route('project.database.backups.all', $parameters) }}">
 | 
			
		||||
            <button>Backups</button>
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user