mirror of
https://github.com/coollabsio/coolify.git
synced 2026-11-06 21:18:11 -04:00
feat(database): let docker compose applications mount the sqlite volume
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user