Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

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

Andras Bacsai1326fcb34525
diff --git a/app/Models/Environment.php b/app/Models/Environment.php
index 726b9078bc..b9451ac3ff 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;
}