mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 11:44:04 +00:00
Fix code style (php-cs-fixer)
This commit is contained in:
parent
504d02354a
commit
d7177c94d6
1 changed files with 2 additions and 2 deletions
|
|
@ -4,8 +4,8 @@ declare(strict_types=1);
|
||||||
|
|
||||||
namespace Stancl\Tenancy\Commands;
|
namespace Stancl\Tenancy\Commands;
|
||||||
|
|
||||||
use Illuminate\Support\Facades\Schema;
|
|
||||||
use Illuminate\Database\Console\Migrations\FreshCommand;
|
use Illuminate\Database\Console\Migrations\FreshCommand;
|
||||||
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
class MigrateFreshOverride extends FreshCommand
|
class MigrateFreshOverride extends FreshCommand
|
||||||
{
|
{
|
||||||
|
|
@ -13,7 +13,7 @@ class MigrateFreshOverride extends FreshCommand
|
||||||
{
|
{
|
||||||
if (config('tenancy.database.drop_tenant_databases_on_migrate_fresh')) {
|
if (config('tenancy.database.drop_tenant_databases_on_migrate_fresh')) {
|
||||||
$tenantModel = tenancy()->model();
|
$tenantModel = tenancy()->model();
|
||||||
|
|
||||||
if (Schema::hasTable($tenantModel->getTable())) {
|
if (Schema::hasTable($tenantModel->getTable())) {
|
||||||
$tenantModel::cursor()->each->delete();
|
$tenantModel::cursor()->each->delete();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue