mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-04 19:34:04 +00:00
Check if the database exists.
Allows developers to check if a database exists. #296 #814 #1153 #598
This commit is contained in:
parent
d98a170fbd
commit
52cbb3bde5
1 changed files with 10 additions and 0 deletions
|
|
@ -163,4 +163,14 @@ class DatabaseConfig
|
||||||
|
|
||||||
return $databaseManager;
|
return $databaseManager;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Check if the database exists.
|
||||||
|
*
|
||||||
|
* @return bool Returns true if the database exists, otherwise false.
|
||||||
|
*/
|
||||||
|
public function exists(): bool
|
||||||
|
{
|
||||||
|
return $this->manager()->databaseExists($this->getName());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue