@@ -66,7 +66,12 @@ class DatabaseBackupJob implements ShouldBeEncrypted, ShouldQueue
|
|||||||
public function handle(): void
|
public function handle(): void
|
||||||
{
|
{
|
||||||
try {
|
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') {
|
if (data_get($this->backup, 'database_type') === 'App\Models\ServiceDatabase') {
|
||||||
$this->database = data_get($this->backup, 'database');
|
$this->database = data_get($this->backup, 'database');
|
||||||
$this->server = $this->database->service->server;
|
$this->server = $this->database->service->server;
|
||||||
|
@@ -112,4 +112,9 @@ class ServiceApplication extends BaseModel
|
|||||||
{
|
{
|
||||||
getFilesystemVolumesFromServer($this, $isInit);
|
getFilesystemVolumesFromServer($this, $isInit);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function isBackupSolutionAvailable()
|
||||||
|
{
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@@ -120,6 +120,7 @@ class ServiceDatabase extends BaseModel
|
|||||||
{
|
{
|
||||||
return str($this->databaseType())->contains('mysql') ||
|
return str($this->databaseType())->contains('mysql') ||
|
||||||
str($this->databaseType())->contains('postgres') ||
|
str($this->databaseType())->contains('postgres') ||
|
||||||
|
str($this->databaseType())->contains('postgis') ||
|
||||||
str($this->databaseType())->contains('mariadb') ||
|
str($this->databaseType())->contains('mariadb') ||
|
||||||
str($this->databaseType())->contains('mongodb');
|
str($this->databaseType())->contains('mongodb');
|
||||||
}
|
}
|
||||||
|
@@ -20,12 +20,16 @@ const RESTART_MODE = 'unless-stopped';
|
|||||||
const DATABASE_DOCKER_IMAGES = [
|
const DATABASE_DOCKER_IMAGES = [
|
||||||
'bitnami/mariadb',
|
'bitnami/mariadb',
|
||||||
'bitnami/mongodb',
|
'bitnami/mongodb',
|
||||||
'bitnami/mysql',
|
|
||||||
'bitnami/postgresql',
|
|
||||||
'bitnami/redis',
|
'bitnami/redis',
|
||||||
'mysql',
|
'mysql',
|
||||||
|
'bitnami/mysql',
|
||||||
|
'mysql/mysql-server',
|
||||||
'mariadb',
|
'mariadb',
|
||||||
|
'postgis/postgis',
|
||||||
'postgres',
|
'postgres',
|
||||||
|
'bitnami/postgresql',
|
||||||
|
'supabase/postgres',
|
||||||
|
'elestio/postgres',
|
||||||
'mongo',
|
'mongo',
|
||||||
'redis',
|
'redis',
|
||||||
'memcached',
|
'memcached',
|
||||||
@@ -33,8 +37,6 @@ const DATABASE_DOCKER_IMAGES = [
|
|||||||
'neo4j',
|
'neo4j',
|
||||||
'influxdb',
|
'influxdb',
|
||||||
'clickhouse/clickhouse-server',
|
'clickhouse/clickhouse-server',
|
||||||
'supabase/postgres',
|
|
||||||
'elestio/postgres',
|
|
||||||
];
|
];
|
||||||
const SPECIFIC_SERVICES = [
|
const SPECIFIC_SERVICES = [
|
||||||
'quay.io/minio/minio',
|
'quay.io/minio/minio',
|
||||||
|
@@ -7,7 +7,7 @@ return [
|
|||||||
|
|
||||||
// The release version of your application
|
// The release version of your application
|
||||||
// Example with dynamic git hash: trim(exec('git --git-dir ' . base_path('.git') . ' log --pretty="%h" -n1 HEAD'))
|
// 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
|
// When left empty or `null` the Laravel environment will be used
|
||||||
'environment' => config('app.env'),
|
'environment' => config('app.env'),
|
||||||
|
|
||||||
|
@@ -1,3 +1,3 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
return '4.0.0-beta.351';
|
return '4.0.0-beta.352';
|
||||||
|
@@ -1,10 +1,10 @@
|
|||||||
{
|
{
|
||||||
"coolify": {
|
"coolify": {
|
||||||
"v4": {
|
"v4": {
|
||||||
"version": "4.0.0-beta.351"
|
"version": "4.0.0-beta.352"
|
||||||
},
|
},
|
||||||
"nightly": {
|
"nightly": {
|
||||||
"version": "4.0.0-beta.352"
|
"version": "4.0.0-beta.353"
|
||||||
},
|
},
|
||||||
"helper": {
|
"helper": {
|
||||||
"version": "1.0.1"
|
"version": "1.0.1"
|
||||||
|
Reference in New Issue
Block a user