mirror of
https://github.com/archtechx/tenancy.git
synced 2025-12-12 06:44:04 +00:00
[4.x] Drop tenant databases on migrate:fresh (#971)
* Test that `migrate:fresh` deletes tenant databases * Delete tenants on `migrate:fresh` * Fix code style (php-cs-fixer) * Add config key for dropping tenant databases on `migrate:fresh` * Add MigrateFreshOverride * Try to override `migrate:fresh` in TenancyServiceProvider * Update `migrate:fresh` test * Fix code style (php-cs-fixer) * Drop tenant databases by default * Change `migrate:fresh` test to test if the tenant DBs are dropped by default * Override `migrate:fresh` by extending `FreshCommand` in TenancyServiceProvider * Update MigrateFreshOverride * Fix code style (php-cs-fixer) * Fix commands test * Simplify handle method * Fix code style (php-cs-fixer) * Don't drop tenant DBs on migrate:fresh by default * Change command overriding * Update migrate:fresh test * always register MigrateFreshOverride * misc Co-authored-by: PHP CS Fixer <phpcsfixer@example.com> Co-authored-by: Samuel Štancl <samuel.stancl@gmail.com>
This commit is contained in:
parent
42dab2985a
commit
080b271bb3
7 changed files with 95 additions and 21 deletions
|
|
@ -30,7 +30,8 @@
|
|||
"doctrine/dbal": "^2.10",
|
||||
"spatie/valuestore": "^1.2.5",
|
||||
"pestphp/pest": "^1.21",
|
||||
"nunomaduro/larastan": "^1.0"
|
||||
"nunomaduro/larastan": "^1.0",
|
||||
"spatie/invade": "^1.1"
|
||||
},
|
||||
"autoload": {
|
||||
"psr-4": {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue