From 1326fcb34525c75034e86254b20d6ffb85df685a Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Mon, 5 Feb 2024 20:15:02 +0100 Subject: [PATCH] Add count checks for MySQL and MariaDB in isEmpty() method --- app/Models/Environment.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/Models/Environment.php b/app/Models/Environment.php index 726b9078b..b9451ac3f 100644 --- a/app/Models/Environment.php +++ b/app/Models/Environment.php @@ -13,6 +13,8 @@ class Environment extends Model return $this->applications()->count() == 0 && $this->redis()->count() == 0 && $this->postgresqls()->count() == 0 && + $this->mysqls()->count() == 0 && + $this->mariadbs()->count() == 0 && $this->mongodbs()->count() == 0 && $this->services()->count() == 0; }