Merge pull request #3701 from coollabsio/next

v4.0.0-beta.352
This commit is contained in:
Andras Bacsai 2024-10-03 20:53:17 +02:00 committed by GitHub
commit 885b3bdea7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 22 additions and 9 deletions

View file

@ -66,7 +66,12 @@ public function __construct($backup)
public function handle(): void
{
try {
$this->team = Team::findOrFail($this->backup->team_id);
$this->team = Team::find($this->backup->team_id);
if (! $this->team) {
$this->backup->delete();
return;
}
if (data_get($this->backup, 'database_type') === 'App\Models\ServiceDatabase') {
$this->database = data_get($this->backup, 'database');
$this->server = $this->database->service->server;

View file

@ -112,4 +112,9 @@ public function getFilesFromServer(bool $isInit = false)
{
getFilesystemVolumesFromServer($this, $isInit);
}
public function isBackupSolutionAvailable()
{
return false;
}
}

View file

@ -120,6 +120,7 @@ public function isBackupSolutionAvailable()
{
return str($this->databaseType())->contains('mysql') ||
str($this->databaseType())->contains('postgres') ||
str($this->databaseType())->contains('postgis') ||
str($this->databaseType())->contains('mariadb') ||
str($this->databaseType())->contains('mongodb');
}

View file

@ -20,12 +20,16 @@
const DATABASE_DOCKER_IMAGES = [
'bitnami/mariadb',
'bitnami/mongodb',
'bitnami/mysql',
'bitnami/postgresql',
'bitnami/redis',
'mysql',
'bitnami/mysql',
'mysql/mysql-server',
'mariadb',
'postgis/postgis',
'postgres',
'bitnami/postgresql',
'supabase/postgres',
'elestio/postgres',
'mongo',
'redis',
'memcached',
@ -33,8 +37,6 @@
'neo4j',
'influxdb',
'clickhouse/clickhouse-server',
'supabase/postgres',
'elestio/postgres',
];
const SPECIFIC_SERVICES = [
'quay.io/minio/minio',

View file

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

View file

@ -1,3 +1,3 @@
<?php
return '4.0.0-beta.351';
return '4.0.0-beta.352';

View file

@ -1,10 +1,10 @@
{
"coolify": {
"v4": {
"version": "4.0.0-beta.351"
"version": "4.0.0-beta.352"
},
"nightly": {
"version": "4.0.0-beta.352"
"version": "4.0.0-beta.353"
},
"helper": {
"version": "1.0.1"