mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-16 10:15:05 +00:00
Merge pull request #1413 from coollabsio/next
Refactored database backup job to handle missing
This commit is contained in:
1 file changed
+1
-1
@@ -113,7 +113,7 @@ class DatabaseBackupJob implements ShouldQueue, ShouldBeEncrypted
|
|||||||
if ($db) {
|
if ($db) {
|
||||||
$databasesToBackup = str($db)->after('POSTGRES_DB=')->value();
|
$databasesToBackup = str($db)->after('POSTGRES_DB=')->value();
|
||||||
} else {
|
} else {
|
||||||
throw new \Exception('POSTGRES_DB not found');
|
$databasesToBackup = $this->database->postgres_user;
|
||||||
}
|
}
|
||||||
} else if ($databaseType === 'standalone-mysql') {
|
} else if ($databaseType === 'standalone-mysql') {
|
||||||
$this->container_name = "{$this->database->name}-$serviceUuid";
|
$this->container_name = "{$this->database->name}-$serviceUuid";
|
||||||
|
|||||||
Reference in new issue
Block a user