feat(database): let docker compose applications mount the sqlite volume

This commit is contained in:
peaklabs-dev
2026-09-27 18:00:34 +02:00
parent 49ae227f6e
commit 2aef5ab459
9 changed files with 253 additions and 19 deletions
@@ -2789,7 +2789,7 @@ class DatabasesController extends Controller
$this->authorize('delete', $database);
if ($database instanceof StandaloneSqlite && $database->connectedVolumes()->exists()) {
if ($database instanceof StandaloneSqlite && $database->hasConnectedApplications()) {
return response()->json([
'message' => 'This database volume is mounted by '.$database->connectedApplicationNames()->implode(', ').'. Remove those mounts before deleting the database.',
], 422);