Skip to content

Commit 885b3bd

Browse files
authored
Merge pull request #3701 from coollabsio/next
v4.0.0-beta.352
2 parents a898237 + d84d0a8 commit 885b3bd

File tree

7 files changed

+22
-9
lines changed

7 files changed

+22
-9
lines changed

app/Jobs/DatabaseBackupJob.php

+6-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,12 @@ public function __construct($backup)
6666
public function handle(): void
6767
{
6868
try {
69-
$this->team = Team::findOrFail($this->backup->team_id);
69+
$this->team = Team::find($this->backup->team_id);
70+
if (! $this->team) {
71+
$this->backup->delete();
72+
73+
return;
74+
}
7075
if (data_get($this->backup, 'database_type') === 'App\Models\ServiceDatabase') {
7176
$this->database = data_get($this->backup, 'database');
7277
$this->server = $this->database->service->server;

app/Models/ServiceApplication.php

+5
Original file line numberDiff line numberDiff line change
@@ -112,4 +112,9 @@ public function getFilesFromServer(bool $isInit = false)
112112
{
113113
getFilesystemVolumesFromServer($this, $isInit);
114114
}
115+
116+
public function isBackupSolutionAvailable()
117+
{
118+
return false;
119+
}
115120
}

app/Models/ServiceDatabase.php

+1
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,7 @@ public function isBackupSolutionAvailable()
120120
{
121121
return str($this->databaseType())->contains('mysql') ||
122122
str($this->databaseType())->contains('postgres') ||
123+
str($this->databaseType())->contains('postgis') ||
123124
str($this->databaseType())->contains('mariadb') ||
124125
str($this->databaseType())->contains('mongodb');
125126
}

bootstrap/helpers/constants.php

+6-4
Original file line numberDiff line numberDiff line change
@@ -20,21 +20,23 @@
2020
const DATABASE_DOCKER_IMAGES = [
2121
'bitnami/mariadb',
2222
'bitnami/mongodb',
23-
'bitnami/mysql',
24-
'bitnami/postgresql',
2523
'bitnami/redis',
2624
'mysql',
25+
'bitnami/mysql',
26+
'mysql/mysql-server',
2727
'mariadb',
28+
'postgis/postgis',
2829
'postgres',
30+
'bitnami/postgresql',
31+
'supabase/postgres',
32+
'elestio/postgres',
2933
'mongo',
3034
'redis',
3135
'memcached',
3236
'couchdb',
3337
'neo4j',
3438
'influxdb',
3539
'clickhouse/clickhouse-server',
36-
'supabase/postgres',
37-
'elestio/postgres',
3840
];
3941
const SPECIFIC_SERVICES = [
4042
'quay.io/minio/minio',

config/sentry.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
// The release version of your application
99
// Example with dynamic git hash: trim(exec('git --git-dir ' . base_path('.git') . ' log --pretty="%h" -n1 HEAD'))
10-
'release' => '4.0.0-beta.351',
10+
'release' => '4.0.0-beta.352',
1111
// When left empty or `null` the Laravel environment will be used
1212
'environment' => config('app.env'),
1313

config/version.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
<?php
22

3-
return '4.0.0-beta.351';
3+
return '4.0.0-beta.352';

versions.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"coolify": {
33
"v4": {
4-
"version": "4.0.0-beta.351"
4+
"version": "4.0.0-beta.352"
55
},
66
"nightly": {
7-
"version": "4.0.0-beta.352"
7+
"version": "4.0.0-beta.353"
88
},
99
"helper": {
1010
"version": "1.0.1"

0 commit comments

Comments
 (0)