Merge pull request #1413 from coollabsio/next
Refactored database backup job to handle missing
This commit is contained in:
commit
c1dd05dcd8
@ -113,7 +113,7 @@ public function handle(): void
|
|||||||
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";
|
||||||
|
Loading…
Reference in New Issue
Block a user