mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-06 03:34:04 +00:00
parent
3f650d887d
commit
15766a0037
12 changed files with 230 additions and 102 deletions
|
|
@ -1,14 +0,0 @@
|
|||
<?php
|
||||
|
||||
namespace Stancl\Tenancy\Interfaces;
|
||||
|
||||
interface DatabaseCreator
|
||||
{
|
||||
/**
|
||||
* Create a database.
|
||||
*
|
||||
* @param string $name Name of the database.
|
||||
* @return void
|
||||
*/
|
||||
public function createDatabase(string $name): bool;
|
||||
}
|
||||
22
src/Interfaces/TenantDatabaseManager.php
Normal file
22
src/Interfaces/TenantDatabaseManager.php
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
<?php
|
||||
|
||||
namespace Stancl\Tenancy\Interfaces;
|
||||
|
||||
interface TenantDatabaseManager
|
||||
{
|
||||
/**
|
||||
* Create a database.
|
||||
*
|
||||
* @param string $name Name of the database.
|
||||
* @return boolean
|
||||
*/
|
||||
public function createDatabase(string $name): bool;
|
||||
|
||||
/**
|
||||
* Delete a database.
|
||||
*
|
||||
* @param string $name Name of the database.
|
||||
* @return boolean
|
||||
*/
|
||||
public function deleteDatabase(string $name): bool;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue