fix: delete environment variables on app/db delete

This commit is contained in:
Andras Bacsai 2023-09-19 14:08:20 +02:00
parent 69c0b7240a
commit 145af41c82
2 changed files with 3 additions and 0 deletions

View File

@ -20,6 +20,8 @@ protected static function booted()
static::deleting(function ($application) {
$application->settings()->delete();
$application->persistentStorages()->delete();
$application->environment_variables()->delete();
$application->environment_variables_preview()->delete();
});
}

View File

@ -32,6 +32,7 @@ protected static function booted()
$database->scheduledBackups()->delete();
$database->persistentStorages()->delete();
instant_remote_process(['docker volume rm postgres-data-' . $database->uuid], $database->destination->server, false);
$database->environment_variables()->delete();
});
}