Add count checks for MySQL and MariaDB in isEmpty() method

This commit is contained in:
Andras Bacsai 2024-02-05 20:15:02 +01:00
parent 8b8e534598
commit 1326fcb345

View File

@ -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;
}